WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] IIS 7.5 Multisite Subdirectory web.config rewrite rules (10 posts)

  1. afhole
    Member
    Posted 3 years ago #

    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

  2. Felix2001
    Member
    Posted 3 years ago #

    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!!

  3. afhole
    Member
    Posted 3 years ago #

    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

  4. Aaron Wagner
    Member
    Posted 3 years ago #

    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.

  5. kansascoder
    Member
    Posted 3 years ago #

    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?

  6. naupadnara
    Member
    Posted 3 years ago #

    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......

  7. monker
    Member
    Posted 2 years ago #

    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?

  8. lankeybama
    Member
    Posted 2 years ago #

    Thanks this helped me as well!

  9. bradvin
    Member
    Posted 2 years ago #

    also had the exact problem and the above change fixed the problem.
    Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Topic