• Hello

    I have installed WP multisite on a subfolder of our domain at example.com/multisite/

    The site is running on IIS 7

    I copied the codes as given to the wp-config and web.config and the site returned 500 server error

    So I removed the codes from web.config and restored the original codes and when I tried to access a new site created at example.com/multisite/mu1 the site returned a 403 Forbidden error

    This is the entire content of the web.config file. Could anyone please review and tell me how to fix this issue

    Please note that despite having this in the web.config I am able to access all the other areas of the website, just cannot access the new site created at /multisite/mu1

    Many thanks in advance

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    	<system.webServer>
    		<staticContent>
    			<remove fileExtension=".svg" />
    			<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
    		</staticContent>
    
    	</system.webServer>
    </configuration>
    
    <?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="^wordpress-footTraffic/([_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="^wordpress-footTraffic/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
                        <action type="Rewrite" url="wordpress-footTraffic/{R:1}" />
                    </rule>
                    <rule name="WordPress Rule 5" stopProcessing="true">
                        <match url="^wordpress-footTraffic/([_0-9a-zA-Z-]+/)?([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
                        <action type="Rewrite" url="wordpress-footTraffic/{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 ‘Error on sub-directory multisite installation in IIS’ is closed to new replies.