Redirect in .htaccess for multisite creates loop
-
I have set up a wordpress multisite network with the following sites:
example.org
example.org/nl
example.org/enI want to redirect example.org to example.org/nl. I’ve tried to do this by adding a 301 redirect to .htaccess at the beginning of the file:
redirect 301 / https://www.example.org/nl
This should do the trick I believe, but instead it causes a redirect loop: when I try to access example.org I get example.org/nlnlnlnlnlnl…etc..
The websites and the network admin environment work fine when the redirect line is removed from .htaccess.
This solution was implemented by my hosting provider, but they do not know how to fix this mistake.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Redirect in .htaccess for multisite creates loop’ is closed to new replies.