The admin dashboards of my multisite and subsites are painfully accessible. The error message says : 'Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.'
I've tried many .htaccess code snippets (Code snippet 1, Code snippet 2), but none of them matched my needs.
I'm working on a dev server. The URL format of the multisite looks like this : www-dev.example.com -> for the main site. The subsites URL formats depend on the country : fr-dev.example.com or uk-dev.example.com.
Here is the Rewrite rule of my .htaccess file :
RewriteEngine On
RewriteBase /
RewriteRule ^category-product/([^\/]+)/([^\/]+)/([^\/]+)/([^\/]+)/?$ index.php?product_cat=$1&produit=$2&aff=$3&nom=$4 [L]
RewriteRule ^categorie-produit/([^\/]+)/([^\/]+)/([^\/]+)/([^\/]+)/?$ index.php?product_cat=$1&produit=$2&aff=$3&nom=$4 [L]
RewriteRule ^sitemap-product-([^\/]+).txt/?$ /sitemap-product.php?country=$1 [L]
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).*) wp/$1 [L]
RewriteRule ^(.*\.php)$ wp/$1 [L]
RewriteRule . index.php [L]
Can anyone please tell me what I'm missing and why do these redirections happen to be ?
PS : I'm sorry but I'm not allowed to give website access URL.