Multisite main page does not open (but sub-directories do)
-
Hello, I am having a problem with my multipage settings of wordpress. I have a main homepage https://www.lojinstitute.com (in Portuguese) and I am working on the translation of the homepage to English, and the page in English will be https://www.lojinstitute.com/en/ The problem is that when I type https://www.lojinstitute.com/en/ I get this:
Index of /en
Parent Directory
cgi-bin/
Apache Server at https://www.lojinstitute.com Port 80One confusing point is that I changed both .htaccess in the main root whose code is as follows
# Use PHP54 as # 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] #END WordPress
And the .htaccess in the public.html folder as follows:
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]
The changes applied to wp-config.php are
define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', 'www.lojinstitute.com'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1);
The site is active and we can see that also by noticing that trying to reach an internal page of https://www.lojinstitute.com/en/home the page shows up.
Thank you so much for your help!
- The topic ‘Multisite main page does not open (but sub-directories do)’ is closed to new replies.