21286 Posts in 5733 Topics by 2602 members
| Go to End | ||
| Author | Topic: | 2228 Views |
-
Re: .htaccess Redirect problem

7 November 2009 at 9:22am
I think there's a loop in your redirection. The RewriteCond matches domain.de and then rewrites to domain.de.. thus it will always match and always redirect. You should just match the first level and rewrite www.domain.de to www.domain.de/de/ and nothing more?
Something like this should work and matches www.domain.de and domain.de
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.de$ [NC]
RewriteRule ^/?$ http://www.domain.de/de/ [R=301,NC,L]
| 2228 Views | ||
| Go to Top |


