• Resolved samar_89

    (@samar_89)


    Hello every one
    today I’ve activated Multisites for my WordPress 4.1 on my localhost Wamp server.
    everything worked fine except that I can’t access new site Dashboard ( not the main site) telling me :
    forbidden
    You don’t have permission to access

    Knowing that There’s only one user which is a super admin
    I searched a lot for such problem but nothing worked.. can you help me soon please?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Can you confirm you can still get to domain.com/wp-admin/network ?

    Thread Starter samar_89

    (@samar_89)

    I couldn’t wait for long so I re-installed the local host and WordPress and everything worked fine..
    Thank You

    I have replaced my .htaccess with this sentence and works for me:

    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]

    I cannot access any sub directory site dashboards but i can see their blog page.

    Here’s my .htcaccess

    # BEGIN WordPress
    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).*) wordpress/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ wordpress/$2 [L]
    RewriteRule . index.php [L]
    
    # END WordPress

    And here’s my wp-config.php

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

    /* That’s all, stop editing! Happy blogging. */

    The site is https://andrenell.com/outloud

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multisites sub-directory on localhost Can't access new sites Dashboard’ is closed to new replies.