WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Multisite Install (11 posts)

  1. naupadnara
    Member
    Posted 3 years ago #

    I installed wordpress 3.2 RC with multi-site and everything worked fine. When I click on Add New Site (under the Network Admin Menu), the site is added but clicking on it generates IIS 404.0 error. Also under the dashboard of Network Admin, even after adding new sites it says: currently you have 1 Site and 1 User.

    Help me...............

  2. The subsites work on those htaccess rules you had to add. if you're in an IIS server that doesn't use htaccess, you'll have to find the web.config entries around here.

  3. naupadnara
    Member
    Posted 3 years ago #

    Thank you so much Andrea....I tried with web.config rewrite rules and it worked....

  4. naupadnara
    Member
    Posted 3 years ago #

    Anyone having problem with rewrite rules in wordpress, you may try the ones which I used successfully:

    <?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="^([_0-9a-zA-Z-]+/)?files/(.+)" ignoreCase="false" />
                        <action type="Rewrite" url="wp-includes/ms-files.php?file={R:2}" appendQueryString="false" />
                    </rule>
                    <rule name="WordPress Rule 3" 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 4" 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 5" stopProcessing="true">
                        <match url="(^[_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
                        <action type="Rewrite" url="{R:2}" />
                    </rule>
                    <rule name="WordPress Rule 6" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
                        <action type="Rewrite" url="{R:2}" />
                    </rule>
                    <rule name="WordPress Rule 7" stopProcessing="true">
                        <match url="." ignoreCase="false" />
                        <action type="Rewrite" url="index.php" />
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>
  5. mikeward
    Member
    Posted 2 years ago #

    THANK YOU naupadnara!!!!

    I have been messing with that for days and your web.config fixed it right away!!!!

  6. Ryan Cowles
    Member
    Posted 2 years ago #

    I just wanted to login to say thanks! You saved me from quite the heaadache, haha.

  7. prepsuna
    Member
    Posted 2 years ago #

    Dear Mikeward,Ryan, and others

    Please tell me where is this web.config file found?
    i searched in whole of my wp folder

    Please its very urgent

    Thanks

    regards
    SKSundaram

  8. mikeward
    Member
    Posted 2 years ago #

    SKSundaram.

    web.config is a .net file located in the root of your .net website. It is not in the wp dir and will only apply if you are running a .net site.

    Hope that helps.
    Mike

  9. naupadnara
    Member
    Posted 2 years ago #

    Dear SKSundaram,

    You have to open a blank notepad file and cop the web.config rules. Save as web.config file and while saving dont forget to select "All Files" from Dropdown or else it will be saved as .txt file.

    Place this web.config file with your other wordpress setup files.

    You use web.config when you have wordpress multisite on IIS.

  10. Andybann
    Member
    Posted 2 years ago #

    Hi all

    This looks like a great web.config file but I am having a little trouble getting this to work for new sub folder sites on IIS 6.

    My set up is complicated but in summary is:

    Win 2003 > IIS 6 > .NET site running on primary domain > WordPress in root of this domain running under Phalanger within the .NET application pool :)

    I can add sites within the Network Admin screen but the web.config above just isn't kicking in to manage these sites - any help much appreciated!

    NOTE: I know the above sounds like a crazy set up but it's the only way I could think to get multi site working within the root of the primary domain whilst keeping lots of legacy asp, aspx and html running whilst we slowly replace these!

  11. Andybann - This topic is resolved and (as you mentioned) you have a different, more complicated setup. Please make a NEW topic, all for yourself, about this.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags