Redirect loop on Multsite subsite

#1
Hello,

I installed OLS on Google compute engine following your guide and using your installer script on its Marketplace.

Everything worked fine and WP was installed.

I then converted it to Multisite, Subdirectory install.

The problem is that network admin and main site admin opens fine, but when I try to open a Subsite admin, it redirects infinitely.

I tried few hours of various fixes found on Google and other methods that I could think but no avail.

Here is my htaccess file ( I kept it basic for now to catch the problem. )

Code:
# BEGIN LSCACHE
# END LSCACHE
# BEGIN NON_LSCACHE
# END NON_LSCACHE
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]
Let me know if you want me to share wp-admin or if you need other info.

Any help will be greatly appreciated.
 

NiteWave

Administrator
#2
not sure if following will work:
Code:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

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

RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
 
#3
Thanks, but I tried it and its did not work.

I wonder why only I am getting this issue, I saw other posts on this forum and it appears to work fine for others.

I also tried entering below in my wp-config file, but still no results, and other pointers ?

Code:
define('ADMIN_COOKIE_PATH', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');
 

Pong

Administrator
Staff member
#4
Top