multisite css js not executing
-
Good night guys,
Need some advice on multisite issue (IIS install) where the main site is http://domain.com and the second site is is 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 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
MPS i’m new to multisite stuff
-
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.
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.
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>
Well the .htaccess stuff is here: 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
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>
- The topic ‘multisite css js not executing’ is closed to new replies.