Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

.htaccess Redirect problem

Go to End

10 Posts   4452 Views


Community Member, 904 Posts

7 November 2009 at 9:22am

I think there's a loop in your redirection. The RewriteCond matches and then rewrites to thus it will always match and always redirect. You should just match the first level and rewrite to and nothing more?

Something like this should work and matches and

RewriteCond %{HTTP_HOST} ^(www\.)?domain\.de$ [NC]
RewriteRule ^/?$ [R=301,NC,L]


Community Member, 181 Posts

27 November 2009 at 2:20am

perfect !!
you are my htaccess boss :]

Go to Top