Forum Moderators: phranque
[edited by: jdMorgan at 4:34 pm (utc) on Apr 16, 2010]
[edit reason] No URLs, please. See Terms of Service and Charter. [/edit]
Redirect and RewriteRule in the same .htaccess file. You can't guarantee what order they will be processed as Redirect is processed by mod_Alias and RewriteRule is processed by mod_Rewrite. Use RewriteRule for all of the rules. RewriteCond MUST begin on a new line. RewriteCond %{HTTP_HOST} ^example\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com$ RewriteCond %{HTTP_HOST} ^[b](www\.)?[/b]example\.com$ RewriteCond %{HTTP_HOST} ^example\.eu$ [OR]
RewriteCond %{HTTP_HOST} ^example\.fr$ RewriteCond %{HTTP_HOST} ^example\.[b](eu|fr)[/b]$ http://www.example.fr[b]:80[/b]/somepage, or similar) your code will not redirect the user. 200 OK status, you'll have a Duplicate Content problem on your hands.