htaccess redirect with multisite
-
Please, could some body help me?
I have WPMU with apache server, with subfolder site for the language, /es/ is the main site, main language. I more or less finish /es/ then I have to duplicate or clone the site to make /en/ translation, an have to build some others sites with related topics, all in subfolders.
I need this kind of redirect:
https://www.example.com->example.com->example.com/es/
I am using this some body gave me, and it works but…# BEGIN redirect RewriteEngine on Options +FollowSymlinks -MultiViews RewriteCond %{HTTP_HOST} ^(www\.)?ejemplo.com\.com$ [NC] RewriteRule ^$ https://ejemplo.com/es/ [R=301,L] RewriteCond %{HTTP_HOST} ^www\.ejemplo\.com$ [NC] RewriteRule ^$ https://ejemplo.com/es/ [R=301,L] #I also using this kind of redirect Redirect 301 /index.html https://example.com/es/
… but may be is causing this error I see in the error log:
[Sat May 23 16:43:27 2015] [error] [client 77.247.181.163] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
Thanks in advance.
- The topic ‘htaccess redirect with multisite’ is closed to new replies.