[TYPO3-german] Rewrite Probleme
Gabi Reimann
reim at comnets.rwth-aachen.de
Wed Sep 30 10:25:30 CEST 2009
Hallo Philipp,
was mir auf den ersten Blick auffällt:
Nach den Rewrite conditions
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
muss eine rewrite rule folgen. das wäre mit auskommentierter spam-umleitung
diese
RewriteRule .* http://sc-hardtberg.de/index.php [R=301,L]
Vielleicht mal versuchen, die spam Umleitung vor diesen Block zu setzen.
Gruß,
Gabi Reimann
http://weppux.selfip.org
Philipp Gampe schrieb:
> Hallo Liste :)
>
> Ich habe die Standard .htaccess Datei leicht modifiziert, allerdings
> scheint sich da ein Fehler eingeschlichen zu haben.
> Wenn ich die Zeile unter Spam Blocking aktiviere, dann ist meine Seite
> nicht mehr erreichbar, weil Sie scheinbar auf sich selbst zeigt :(+
> Eigentlich soll die Zeile überprüfen, ob die beiden Ausdrücke in der URL
> vorkommen und dann die Datei spam.html anzeigen.
> Der Fehler liegt sicherlich im regulären Ausdruck, allerdings sind die
> nicht meine Stärke :|
>
> Viele Grüße
> Phil
>
> <snip>
>
> ### Begin: Rewrite stuff ###
>
> # Enable URL rewriting
> RewriteEngine On
>
> # To assist in debugging rewriting, you could use these lines
> # DON'T enable it for production!
> # This will only work in httpd.conf, not in .htaccess files
> #RewriteLog /var/log/apache/rewrite.log
> #RewriteLogLevel 9
>
> # If you use the RealUrl extension, then you'll have to enable the next
> line.
> # You will have to change this path if your TYPO3 installation is located
> # in a subdirectory of the website root.
> #
> # If you place this in httpd.conf, you cannot use this directive in any
> case!
> #RewriteBase /
>
> # Stop rewrite processing if we are in the typo3/ directory
> # For httpd.conf, use this line instead of the next one:
> # RewriteRule
> ^/TYPO3root/(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/
> - [L]
> RewriteRule
> ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/
> - [L]
>
> # Redirect http://mysite/typo3 to http://mysite/typo3/index_re.php
> # and stop the rewrite processing
> # For httpd.conf, use this line instead of the next one:
> # RewriteRule ^/TYPO3root/typo3$ /TYPO3root/typo3/index.php [L]
> RewriteRule ^typo3$ typo3/index_re.php [L]
>
> # If the file/symlink/directory does not exist => Redirect to index.php
> # Important note: If you copy/paste this into httpd.conf instead
> # of .htaccess you will need to add '%{DOCUMENT_ROOT}' left to each
> # '%{REQUEST_FILENAME}' part.
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
>
> # Phil begin
> # Spam Blocking
> #RewriteRule ^(217\.218\.225\.2|owned-nets\.blogspot\.com)/ spam.html [L]
> # Phil end
>
>
> # Main URL rewriting.
>
> # If you use Windows and SimulateStaticDocuments do not work, try adding a
> # slash (/) right before 'index.php' below.
>
> # The example shows how to rewrite only *.html and *.pdf files to index.php
> # This may be helpful when using an extension that can generate PDF files
> # on the fly.
> # Example: RewriteRule .*\.(html|pdf)$ index.php [L]
>
> # For httpd.conf, use this line instead of the next one that has no '#':
> # RewriteRule .* /TYPO3root/index.php [L]
>
> # For use with the RealUrl extension, you might need to remove the
> # RewriteBase directive somewhere above and use this line instead of the
> # next one:
> # RewriteRule .* /index.php [L]
>
> RewriteRule .* http://sc-hardtberg.de/index.php [R=301,L]
>
> ### End: Rewrite stuff ###
> </snip>
>
>
More information about the TYPO3-german
mailing list