• Hi

    This is the first time I have posted a question, so I hope I get all the relevant information to you.
    Thanks
    Garrett

    Overview:
    ———
    I have multisite enabled up on my local PC’s installation of WP.
    I created a new site (using the sub-folder method, not sub-domain).
    Still logged in as SuperrAdmin I click on the new site’s Dashboard, but get the following error:

    Access forbidden!
    You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected.
    If you think this is a server error, please contact the webmaster.
    Error 403

    When I click on the new site’s Visit link, I see the new site’s home page, with no theme, no apparent CSS whatsoever, just plain text and blue links.

    Longer story:
    ————-

    I used XAMPP 3.2.1 to install Pache and MySQL server, successfully.
    I installed WP 4.2.3 and successfully created a new site.
    I then followed the instructions to allow mulitple sites, by modifying wp-config.php and .htaccess (I will copy and paste their contents to the end of this post).
    Note: I am performing all these tasks on my local PC – I have yet to consider uploading it to any online server.
    So my main site is at address: http://localhost/wp/
    My new/extra site is at address: http://localhost/wp/newSite/

    The new site’s details are:
    domain: http://localhost
    path: /wp/newSite/
    attributes: public
    I put myself (super admin) down as the site administrator.
    The site settings (the very long page) are populated, including the default theme.

    Note: I checked the wp-content folder and verified that there are no sub-folders created for the new site. I assume all site info is stored internally in the database.

    SO I have a few questions that might relate to why I can;t access the site’s dashboard (and why the site’s homepage is not being displayed with and CSS)…

    1. When created a new site on localhost, is it okay to put the SuperAdmin /
    NetworkAdmin as the new site’s administrator?
    2. Could this issue be because WP needs to go through some email verification process, even though the site is not online?

    Here are my two modified file. Thanks in advance for any help.

    file: wp-config.php

    /**
     * WordPress Database Table prefix.
     *
     * You can have multiple installations in one database if you give each a unique
     * prefix. Only numbers, letters, and underscores please!
     */
    $table_prefix  = 'wp_';
    
    /**
     * For developers: WordPress debugging mode.
     *
     * Change this to true to enable the display of notices during development.
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
     * in their development environments.
     */
    define('WP_DEBUG', false);
    
    /**
     * Allow multiple blogs.
     */
    define('WP_ALLOW_MULTISITE', true);
    
    /**
     * Create a Network of WordPress Sites.
     */
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'localhost');
    define('PATH_CURRENT_SITE', '/wp/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    
    /**
     * Define which defult theme is used for newly created sub-sites.
     */
    define('WP_DEFAULT_THEME', 'oxygen');
    
    /* That's all, stop editing! Happy blogging. */
    
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    file: .htaccess

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wp/
    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).*) C:/xampp/htdocs/WP/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ C:/xampp/htdocs/WP/$2 [L]
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress
Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m having the exact same problem as Garrett here so if anyone knows the answer to it, I would be grateful. I feel like I’m missing something obvious.

    nitinkhare

    (@nitinkhare)

    Replacing following lines in .htaccess resolved the exact same issue for me.

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SuperAdmin can't access site's dashboard’ is closed to new replies.