• Resolved kaskarino

    (@kaskarino)


    I have enabled multisite (mydomain.gr) and I created a subfolder site (mydomain.gr/el), but it doesn’t work. The main site works fine, but the subfolder gives

    Index of...
    
    *Parent Directory
    *cgi-bin/
    
    Apache Server at "mydomain" Port 80

    I have added these to wp-config:

    /* Multisite */
    define('WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'chioshiking.gr');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    and this is the .htaccess:

    # BEGIN WPSuperCache
    # END WPSuperCache
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    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]
    </IfModule>
    
    # END WordPress

    what am i doing wrong? Any advise?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Just guessing… Did you perhaps create a folder with that name? If yes, there is no need to do this.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Give the folder has cgi-bin I’m going to guess it’s cPanel, and you made the subdomain point to it’s own folder instead of public_html.

    Thread Starter kaskarino

    (@kaskarino)

    Thanks everybody. Issue is solved. I totally removed multisite and then reenabled it, but this time i chose subdomain option and now everything looks fine.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Subfolder site problem’ is closed to new replies.