Title: multisite css   js not  executing
Last modified: August 21, 2016

---

# multisite css js not executing

 *  Resolved [michaelsrpersaud](https://wordpress.org/support/users/michaelsrpersaud/)
 * (@michaelsrpersaud)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/multisite-css-js-not-executing/)
 * Good night guys,
 * Need some advice on multisite issue (IIS install) where the main site is [http://domain.com](http://domain.com)
   and the second site is is [http://domain.com/xyz](http://domain.com/xyz) and 
   the pages shows no CSS formatting.
 * When i check the page source is see lines like [http://domain.com/xyz/wp-content/plugins/abc/abc.css](http://domain.com/xyz/wp-content/plugins/abc/abc.css)
   but when i paste these in the url the get 404 errors. When i remove the /xyz 
   it works normally.
 * I checked the /wp-admin/network/network settings and copied what was suggested
   into the web.config
 * Any advice would be appreciated
 * Thanks
    M
 * PS i’m new to multisite stuff

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [michaelsrpersaud](https://wordpress.org/support/users/michaelsrpersaud/)
 * (@michaelsrpersaud)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/multisite-css-js-not-executing/#post-4385222)
 * Also to mention in the 404 error it says the physical path is c:\<masked>\domain\
   xyz where xyz doesn’t exist because its in the database.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [12 years, 5 months ago](https://wordpress.org/support/topic/multisite-css-js-not-executing/#post-4385340)
 * That error (no CSS) means your web.config or .htaccess file is not being read
   correctly. Which do you have and what is it set to?
 * Note: You’re on IIS. There are far fewer WP experts on IIS.
 *  Thread Starter [michaelsrpersaud](https://wordpress.org/support/users/michaelsrpersaud/)
 * (@michaelsrpersaud)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/multisite-css-js-not-executing/#post-4385341)
 * Thanks for responding.
 * I have web.config. I was trying to use helicon ape to read the .htaccess but 
   that crapped out too.
 * currently the webconfig file has what was recommended by the wp-admin/network
   settings. If i can at least understand from an .htaccess point of view what needs
   to be done i can try to generate the web.cfg equivalent.
 *     ```
       <?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 for Files" stopProcessing="true">
                           <match url="^([_0-9a-zA-Z-]+/)?files/(.+)" ignoreCase="false" />
                           <action type="Rewrite" url="wp-includes/ms-files.php?file={R:1}" appendQueryString="false" />
                       </rule>
                       <rule name="WordPress Rule 2" stopProcessing="true">
                           <match url="^([_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="^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
                           <action type="Rewrite" url="{R:1}" />
                       </rule>
                       <rule name="WordPress Rule 5" stopProcessing="true">
                           <match url="^([_0-9a-zA-Z-]+/)?([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
                           <action type="Rewrite" url="{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>
       ```
   
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [12 years, 5 months ago](https://wordpress.org/support/topic/multisite-css-js-not-executing/#post-4385347)
 * Well the .htaccess stuff is here: [http://codex.wordpress.org/htaccess#Multisite](http://codex.wordpress.org/htaccess#Multisite)
 * I also ran into this: [http://wordpress.org/support/topic/iis-75-multisite-subdirectory-webconfig-rewrite-rules?replies=10](http://wordpress.org/support/topic/iis-75-multisite-subdirectory-webconfig-rewrite-rules?replies=10)
 *  Thread Starter [michaelsrpersaud](https://wordpress.org/support/users/michaelsrpersaud/)
 * (@michaelsrpersaud)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/multisite-css-js-not-executing/#post-4385421)
 * Thanks Ipstenu.
 * I will confess i looked at both these links before and did try the second one
   before but it didnt work. I tried just the rule 5 which was my rule 4 and after
   replacing it it WORKS!!!! 🙂 {sorry for the caps i’m just happy after almost 
   2 weeks of trying}
 * here goes my full file in case anyone else has the same issue:
 * =================
 *     ```
       <?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 for Files" stopProcessing="true">
                           <match url="^([_0-9a-zA-Z-]+/)?files/(.+)" ignoreCase="false" />
                           <action type="Rewrite" url="wp-includes/ms-files.php?file={R:1}" appendQueryString="false" />
                       </rule>
                       <rule name="WordPress Rule 2" stopProcessing="true">
                           <match url="^([_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="^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*)" ignoreCase="false" />
                           <action type="Rewrite" url="{R:1}" />
                       </rule>
       				<rule name="WordPress Rule 5" stopProcessing="true">
                           <match url="^([_0-9a-zA-Z-]+/)?([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
                           <action type="Rewrite" url="{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>
       ```
   

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘multisite css js not executing’ is closed to new replies.

## Tags

 * [css issues](https://wordpress.org/support/topic-tag/css-issues/)
 * [iis](https://wordpress.org/support/topic-tag/iis/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 5 replies
 * 2 participants
 * Last reply from: [michaelsrpersaud](https://wordpress.org/support/users/michaelsrpersaud/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/multisite-css-js-not-executing/#post-4385421)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
