• Resolved afhole

    (@afhole)


    I have just setup 3.1-IIS on an IIS 7.5 box, and configured sub directory multisite. Everything was fine following the instructions, except all the images and CSS links were broken. I had to change WordPress Rule 5 to get them working, from:

    <rule name="WordPress Rule 5" stopProcessing="true">
                        <match url="^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*)" ignoreCase="false" />
                        <action type="Rewrite" url="{R:2}" />
                    </rule>

    to:

    <rule name="WordPress Rule 5" stopProcessing="true">
                        <match url="^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*)" ignoreCase="false" />
                        <action type="Rewrite" url="{R:1}" />
                    </rule>

    Should the rewrite rules that are suggested by the installer be changed to reflect this, or is there something special about my setup that is incorrect?

    Cheers

Viewing 9 replies - 1 through 9 (of 9 total)
  • hi afhole,

    I was having the exact same issue as you, i’m running 3.1 on IIS7 box with url rewrite. once I changed the line you indicated in the web.config it worked! Do you know if there is anything else we need to change there? Or was that the only problem you ran into? Cheers, and Thanks!!

    Thread Starter afhole

    (@afhole)

    Awesome, glad it worked for you too!
    That’s the only thing I have changed so far, and my first and only user has been happily setting up their site with not problems. I’ll post here if I find anything else needs changing.
    Peace

    Aaron Wagner

    (@ajwagner777)

    Just want to point out that this worked perfectly for me as well. I was thinking that I was crazy and did something wrong in the setup process and was about to scrap everything and start over.

    This got my styles showing up but the themes don’t seem to be getting used properly. I created a second site, a different them from my default site, and it only uses the default site’s theme. Is there a 2 somewhere that needs to be changed to a 1?

    Hey can anyone please give me the exact rules which I need to paste in web.config file for using multisite in wordpress? Also where should I place this web.config file?…I am using IIS 7…
    Please help……

    mine is still not working even with the last post.
    I have a main site and I have installed wordpress site on the same server under that domain, ex http://intranet and the new one is http://intranet/testsite

    When I try to put the Day and name permalink the pages get directed to http://intranet

    anything I’m missing?

    Thanks this helped me as well!

    also had the exact problem and the above change fixed the problem.
    Thanks 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘IIS 7.5 Multisite Subdirectory web.config rewrite rules’ is closed to new replies.