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.

  • Patrick
    • Support Monkey

    Hi @Lindsay

    Welcome to the forums!

    Setting up a multisite the first time can be a bit daunting. The first things to check when you you get redirect issues like that are your .htaccess and wp-config.php files.

    Be sure the configurations are exactly as indicated in Network Admin > Settings > Network Setup

  • Lindsay
    • Flash Drive

    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
    • Support Monkey

    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:

  • Lindsay
    • Flash Drive

    That didn't work:slight_frown:

    I really need to get this problem solved today asap. It would be great if we could get some more advice from your coworkers.

    Is the .htaccess file only for non-windows hosting? I am seeing that many people pasted info into a .htaccess file instead of the web.config. I'm wondering if I should delete the web.config and create .htaccess?

    Just a thought.

  • Lindsay
    • Flash Drive

    So I figured this out for the most part.

    I switched to a Linux hosted site on my godaddy account. I could not find any fix for multisite subdirecory hosting on windows server.

    Once I switched and went through the motions it all worked fine!

    Thank You

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.