Forum Moderators: phranque
RewriteCond %{HTTP_HOST} ^mydomain\.com\?[parameter] [NC]
You will need to use %{QUERY_STRING}. I would elaborate, but this is an update thread. =)
If you are stuck, please post in the Apache forum.
I'm stuck... how do I do this redirect, please?
Thanks!
Options +FollowSymLinks
RewriteCond %{query_string} ^aaaa=bbbb.htm
RewriteRule index\.htm$ http://www.example.com/? [R=301,L] Or is this going to break and make Google angry somehow?
[edited by: jdMorgan at 3:50 pm (utc) on June 10, 2005]
[edit reason] Examplified. [/edit]
Since you didn't state what you're trying to accomplish or give background information on your current site structure, I can't say if it will hurt your rankings in Google.
You can make it more specific by start-anchoring the URL pattern. Further, you should escape all literal characters, including those in the query string:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{QUERY_STRING} ^aaaa=bbbb\.htm
RewriteRule ^index\.htm$ http://www.example.com/? [R=301,L]
Jim