A
A
Andrey Boychenko2016-03-28 14:55:45
WordPress
Andrey Boychenko, 2016-03-28 14:55:45

Wordpress multisite looping redirects on subsites?

Good afternoon, I organized a multisite on the VP, but when I try to go to the admin panel of any of the subsites, I get


somesite.loc page not working
Somesite.loc redirected too many times.
ERR_TOO_MANY_REDIRECTS

Perhaps the problem is in .htaccess, but I'm not familiar with the Mod revrite syntax.
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [ OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php[L]

Please tell me where is the problem, thanks!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladyslav Phenychnyi, 2016-03-28
@Ka4_Piton

Try this one.

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question