• This is my first attempt to set up a WP network. I created a site on a test server and followed all the directions for a subdirectory setup, but it looks like my sites can’t find the CSS file. (using 2017 theme, btw) I also didn’t see any subdirectories for the site created in the /wp-content/uploads/ folder. Any suggestions?

    My master site URL is just the server name, not a fully-qualified domain name (i.e., https://servername/ instead of https://servername.domain.com/

    Thanks!
    Selena Smith

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi.
    I answered once about this on another forum and I gave the guy this link, and he said it helped him. He said it was from the nginx: https://premium.wpmudev.org/forums/topic/css-not-rendering-on-multisite-subfolders#post-742850

    Thread Starter selenasmith

    (@selenasmith)

    Thanks for your response. My WP multisite is installed on a Windows 2008 server using Microsoft Web Platform Installer and updated to WP 4.8, so i’m using web.config instead of .htaccess. The site is set up as subdirectory, not subdomain.

    Here’s the code added to wp-config.php (Domain_Current_Site blocked out intentionally):

    /* Multisite */
    define(‘WP_ALLOW_MULTISITE’, true);

    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘****’);
    define(‘PATH_CURRENT_SITE’, ‘/WPMulti/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    define(‘ADMIN_COOKIE_PATH’, ‘/’);
    define(‘COOKIE_DOMAIN’, ”);
    define(‘COOKIEPATH’, ”);
    define(‘SITECOOKIEPATH’, ”);

    And here’s the web.config:
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <configuration>
    <system.webServer>
    <rewrite>
    <rules>
    <rule name=”WordPress Rule 1″ stopProcessing=”true”>
    <match url=”^index\.php$” ignoreCase=”false” />
    <action type=”None” />
    </rule>
    <rule name=”WordPress Rule 2″ stopProcessing=”true”>
    <match url=”^WPMulti/([_0-9a-zA-Z-]+/)?wp-admin$” ignoreCase=”false” />
    <action type=”Redirect” url=”{R:1}wp-admin/” redirectType=”Permanent” />
    </rule>
    <rule name=”WordPress Rule 3″ stopProcessing=”true”>
    <match url=”^” ignoreCase=”false” />
    <conditions logicalGrouping=”MatchAny”>
    <add input=”{REQUEST_FILENAME}” matchType=”IsFile” ignoreCase=”false” />
    <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” ignoreCase=”false” />
    </conditions>
    <action type=”None” />
    </rule>
    <rule name=”WordPress Rule 4″ stopProcessing=”true”>
    <match url=”^WPMulti/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)” ignoreCase=”false” />
    <action type=”Rewrite” url=”WPMulti/{R:1}” />
    </rule>
    <rule name=”WordPress Rule 5″ stopProcessing=”true”>
    <match url=”^WPMulti/([_0-9a-zA-Z-]+/)?([_0-9a-zA-Z-]+/)?(.*\.php)$” ignoreCase=”false” />
    <action type=”Rewrite” url=”WPMulti/{R:2}” />
    </rule>
    <rule name=”WordPress Rule 6″ stopProcessing=”true”>
    <match url=”.” ignoreCase=”false” />
    <action type=”Rewrite” url=”index.php” />
    </rule>
    </rules>
    </rewrite>
    </system.webServer>
    </configuration>

    Thanks for your help!
    Selena Smith

    Sorry, I am not familiar with this type of code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS not working’ is closed to new replies.