[TYPO3-german] Rewrite Probleme

Bjoern Pedersen pedersen at resi2.office.frm2
Thu Oct 1 10:46:34 CEST 2009


"Philipp Gampe" <phil at philippgampe.info> writes:

> Am 30.09.2009, 10:25 Uhr, schrieb Gabi Reimann
> <reim at comnets.rwth-aachen.de>:
>
>> 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
>
> ok, dass klappt schon mal,
>
> allerdings greift jetzt die Spam Umleitung gar nicht :(
> vermutlich ist sie falsch...
>
> get /index.php?id=http://217---218---225---2:2082  [<-- Achtung Spam]
>
> --- > .
>
> Das soll ausgefiltert und auf die ./spam.html Datei umgeleitet werden.
> Bisher gibt es jedes Mal eine Wahrung, dasss PageType 218 nicht
> konfiguriert ist :(
>
> Grüße
> Phil
>
Du willst also auf den Querystrinbg filtern, nicht auf die URL. 
Dann brauchst du eine RewriteCond. 

Aber vielleicht ist ja die Verwendung von RealURL eine bessere Lösung,
um diesen Typ von SPAM zu unterdrücken


Und lies auch mal: 
http://bugs.typo3.org/view.php?id=8579

Siehe:
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html

Note: Query String

The Pattern will not be matched against the query string. Instead, you must use a RewriteCond with the %{QUERY_STRING} variable. You can, however, create URLs in the substitution string, containing a query string part. Simply use a question mark inside the substitution string, to indicate that the following text should be re-injected into the query string. When you want to erase an existing query string, end the substitution string with just a question mark. To combine a new query string with an old one, use the [QSA] flag.


Björn


More information about the TYPO3-german mailing list