Multisite, New Site Redirect Error

I installed the new 3.6.1 WP. I activated multisite feature. All seems to be working fine except when I try to access my New Site dashboard, it gives me an error saying there is a redirect that will never complete.
I have been looking everywhere for an answer. Please help.

  • Lindsay

    I am checking that right now in my wp-config.php file.

    Right now there are two things standing out to me that I need help on.
    In my Network Setup I have this error on the top:

    Warning: strpos() [function.strpos]: Empty delimiter in D:\Hosting\4350088\html\development\network\wp-admin\network.php on line 317

    Also, in all of my file I am not seeing an .htaccess, where should I be seeing that?

    I have two steps in my Network Setup:
    1. Add this to my wp-config:
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'cranium360.com');
    define('PATH_CURRENT_SITE', '/development/network/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    I did this.

    2. Add this to my web.config:
    <?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="^development/network/([_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="^development/network/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
    <action type="Rewrite" url="development/network/{R:1}" />
    </rule>
    <rule name="WordPress Rule 5" stopProcessing="true">
    <match url="^development/network/([_0-9a-zA-Z-]+/)?([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
    <action type="Rewrite" url="development/network/{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>

    I did this.

    Thank You:slight_smile:
    Lindsay G

  • Patrick

    Hi again @Lindsay

    Ah, you're on a Windows server. :slight_smile:

    While I must admit I have little experience with web.config files, it would seem to me that WordPress Rule 2 has an improperly formatted redirect.

    Try changing Rule 2 from this:

    <rule name="WordPress Rule 2" stopProcessing="true">
    <match url="^development/network/([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" />
    <action type="Redirect" url="{R:1}wp-admin/" redirectType="Permanent" />
    </rule>

    ...to this:

    <rule name="WordPress Rule 2" stopProcessing="true">
    <match url="^development/network/([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" />
    <action type="Redirect" url="development/network/{R:1}wp-admin/" redirectType="Permanent" />
    </rule>

    If that doesn't help, we'll seek advice from fellow support staffers who may have more experience in these matters. :slight_smile:

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.