• Hi everyone! I have a problem with a loading styles, scripts and images files for sites in a multisite network.

    They all are loaded by incorrect urls as you can see in attachments. I’ve setted up my network by wordpress instructions, and there are how my .htaccess and wp-config look like:

    .htaccess

    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]

    wp-config.php

    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'wp-testing6');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    Wordpress loads file, for example, using this url

    http:// wp-testing6/test1/wp-content/themes/twentysixteen/style.css

    but this style stores here

    http:// wp-testing6/wp-content/themes/twentysixteen/style.css

    my screenshot

    So, if you know how to fix that problem let me know please!

Viewing 1 replies (of 1 total)
  • Moderator Bet Hannon

    (@bethannon1)

    Multisite networks store all of the themes in maindomain.com/wp-content/themes, so that they can be shared by the entire network. That’s normal expected behavior.

    Are your subsites displaying with themes? Is your problem just that the URLs look “incorrect”? Or are you actually having a problem displaying subsites with themes applied?

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress Multisite Sub-directory Setup Problems’ is closed to new replies.