Support » Fixing WordPress » Multisite main page does not open (but sub-directories do)

  • Resolved brazilkorea

    (@brazilkorea)


    Hello, I am having a problem with my multipage settings of wordpress. I have a main homepage http://www.lojinstitute.com (in Portuguese) and I am working on the translation of the homepage to English, and the page in English will be http://www.lojinstitute.com/en/ The problem is that when I type http://www.lojinstitute.com/en/ I get this:

    Index of /en

    Parent Directory
    cgi-bin/
    Apache Server at http://www.lojinstitute.com Port 80

    One 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 http://www.lojinstitute.com/en/home the page shows up.

    Thank you so much for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there.

    That appears like you have a physical directory for /en, can you log in with FTP or you cPanels file manager and remove that folder. WordPress will then be able to do it’s thing.

    A physical folder will take priority over a WordPress site using the same slug for it’s site.

    Let me know how that goes for you.

    Take care.

    Thread Starter brazilkorea

    (@brazilkorea)

    Timothy, you are the guy! Thank you so much. Success for you my friend.

    Awesome, glad I could help! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multisite main page does not open (but sub-directories do)’ is closed to new replies.