WordPress.org

Ready to get started?Download WordPress

Forums

Multisite - No styles ? (3 posts)

  1. Dmitriy Kabakov
    Member
    Posted 1 year ago #

    I need to create a WordPress multisite.

    But, all network's sites running with no stylesheets.
    And I'm stuck here...

    Let's say my current site: mysite.com

    1. I've created a subdomain and installed a new version of WordPress (3.4.2): multi.mysite.com

    2. Using step-by-step tutorial (http://codex.wordpress.org/Create_A_Network), I've created a multisite based on subdirectories.

    3. I have modified wp-config and htaccess file, then created a first site.

    wp-config:

    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    $base = '/';
    define('DOMAIN_CURRENT_SITE', 'multi.mysite.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    .htaccess:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # 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).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    Now dashboard or website itself have no styles.

    4. According to forum posts I've also modified a server part.

    <VirtualHost *:8888>
        ServerAdmin admin@mysite.com
        DocumentRoot /var/www/multi
       <Directory /var/www/multi>
            AllowOverride All
        </Directory>
        ServerName multi.mysite.com
        ErrorLog logs/multi-error_log
        CustomLog logs/multi-access_log common
    </VirtualHost>

    Can anybody help me with this issue?

  2. No styles means your .htaccess isn't being read :/

    Try AllowOverride Fileinfo Options All (yes, I know)

  3. tanver
    Member
    Posted 1 year ago #

    I was facing the same problem, and did copy the .htaccess code from here and it worked for me fine .. should work for you as well.

    I did try AllowOverride Fileinfo Options All, but caused 500 error.

Topic Closed

This topic has been closed to new replies.

About this Topic