Site icon Hip-Hop Website Design and Development

WordPress multisite subdirectory redirect infinite loop challenge

Any time I create a brand new website on my multisite set up, I get an infinite loop redirect when navigating to that website’s admin. I am utilizing the default htaccess provided by WP for my subdirectory set up. Here is what I’ve:

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 material|admin|consists of).*) website/$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ website/$2 [L]
RewriteRule . index.php [L]

FYI – My wp set up is inside a folder named ‘website’, and the difficulty is going on each on my native mamp set up and on my internet hosting server.

Here is the multisite data from my config file:

outline( 'WP_ALLOW_MULTISITE', true );
outline('MULTISITE', true);
outline('SUBDOMAIN_INSTALL', false);
outline('DOMAIN_CURRENT_SITE', APP_URL);
outline('PATH_CURRENT_SITE', '/website/');
outline('SITE_ID_CURRENT_SITE', 1);
outline('BLOG_ID_CURRENT_SITE', 1);

I’ve spent the previous 2 days googling, however to no avail. Listed below are a few options I’ve tried that did not assist:

Any assist could be appreciated. I am beginning to get determined :-/