[TYPO3-dev] 301 Redirect Problem
Christopher Torgalson
bedlamhotel at gmail.com
Fri Jun 4 09:33:13 CEST 2010
Hi,
On Friday, June 4, 2010, Sebastian Michaelsen <sebastiangebhard at hoch2.de> wrote:
> Solved it:
> RewriteCond %{QUERY_STRING} (.*)id\=821(.*)
> Rewriterule ^(.*)$ http://www.example.com/? [R=301,L]
You can also do this kind of match this way:
RewriteCond %{QUERY_STRING} &?id=821
RewriteRule index.php http://www.example.com/? [R=301,L]
I did this from memory on a mobile so check for errors, but this way
should be more efficient than using the "." to match your patterns I
think. Incidentally, using RealUrl for this purpose is also much less
efficient than just using mod_rewrite.
> But it would be interesting if you can confirm that realurl cannot redirect URLs with id-Parameters.
No idea :)
--
Christopher Torgalson
http://www.typo3apprentice.com/
More information about the TYPO3-dev
mailing list