local multisite setup problem
-
Hi
I am trying to setup a multisite on localhost.
local server running with MAMP, installed from scratch with the last WP version (5.3.2).
After completion of the basic install, I have setup multisite with a subdirectory “en”.
I have followed the creation process as described in WP documentation, and added the recommanded directives to the .htaccess file
The dashboard shows the network setup :
Main site URL is : localhost/wordpress
Second site URL is : localhost/wordpress/enNo pages or posts have been added, no settings modified.
The main site works well, and the dashboard shows the menu for the network and the two sites, but when I try to access to the dashboard for the second site, the browser cannot reach it and ends with a “too many redirections error”.
I suspect an error in the .htaccess file, but after multiple checks, I still can’t find what is going wrong.
here it is :<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/index.php [L] RewriteEngine On RewriteBase /wordpress/ RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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] </IfModule>
Thanks for your help!
- The topic ‘local multisite setup problem’ is closed to new replies.