• Resolved MF7913

    (@mf7913)


    Hello ??

    I have a Windows Server 2012 R2 with WordPress 4.3 on it.
    WP 4.3 Network is configured to use Sub Directories.
    The first site / main site i working. I can also create the second one – also no problems.

    But when I try to:
    1) visit the New Network Site I get a “necked” site with out any theme applied
    2) access the Dashboard of the New Network Site I get a 404 Error back: 404 – File or directory not found

    Any one who get an idea what went wrong or how to fix the issue

    Kind Regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter MF7913

    (@mf7913)

    It seems to me it’s more a PHP issue then a WordPress.

    Do anyone have an idea how to fix it ??

    Kind regards

    Thread Starter MF7913

    (@mf7913)

    Any one ?

    I prefer using a linux server rather than windows.

    Thread Starter MF7913

    (@mf7913)

    Hey nodecloudhosting

    I agree ?? but I have no choice in this cace ??

    Thread Starter MF7913

    (@mf7913)

    Hey … This solved it for me ??

    There is an Error in WordPress ReWrite Rules for IIS

    Correcting WP-Admin 404 Error for Sub Directories for WordPress Network under IIS

    Original rules to add wp-config.php file.
    The Error is marked in BOLD. More specific – WordPress Rule 4, action type=”Rewrite” url=”{R:1}”

    ?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-]+/)?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>

    Change the WordPress Rule 4, action type=”Rewrite” url=”{R:1}” to WordPress Rule 4, action type=”Rewrite” url=”{R:2}”

    <?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-]+/)?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:2}” />
    </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>

    Thread Starter MF7913

    (@mf7913)

    Solved ?? … Yahoo ??

    @mf7913 if I could buy you a beer I definitely would… I have been pulling my hair out for 2 days over this problem. It is amazing that this erroneous web.config is still being generated in WordPress 4.5.3 and has still not been fixed.

    Thanks for taking the time to figure this out and posting the solution back here… much appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Multisite WP 4.3 Network Win Srv., visit New Site return 404 Error’ is closed to new replies.