• I’m not sure if it really is the plugin causing this, but when I try to go to the wp-login.php page of my parked domain/WordPress multisite that I set this plugin up to work with, I get infinitely redirected. Nothing ever loads, although I have no issue getting to my main WordPress login page or its dashboard; I just can’t get to this sub-site even from my Network Sites menu–it just brings me to the login page and starts the redirect all over again.

    I haven’t made any changes to my server configuration, WordPress, sunrise.php, or anything that I’m aware of (e.g. not sure if an automatic update to WP could have done this).

    What could be going on?

    https://wordpress.org/plugins/wordpress-mu-domain-mapping/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ron Rennick

    (@wpmuguru)

    What are your domain mapping settings? and

    What is the primary domain for the site in question>

    Thread Starter Azurite

    (@azurite)

    I may have fixed the issue with a workaround that I am not sure is a good idea. I removed the plugin domain-mapping.php from the mu-plugins folder and put it into the normal plugins folder and activated it.

    Now that I’m able to get into the Dashboard, I can see my settings, which say:

    Where the one with the www is selected as the Primary. None of them have the delete option.

    I contacted my host about this and they supplied me with this link: http://tommcfarlin.com/resolving-the-wordpress-multisite-redirect-loop/

    It basically says to add:

    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define('SITECOOKIEPATH', '');

    to wp-config.php, but when I did that, the define(‘COOKIE_DOMAIN’, ”); line gave me an error, so I removed it.

    Not sure how necessary the other lines are or if I should keep them.

    Plugin Author Ron Rennick

    (@wpmuguru)

    Unfortunately you can’t use the Tom Mcfarlin solution for your redirect loop if you are using domain mapping.

    You’ll have to find the cause of the rewrite loop.

    Thread Starter Azurite

    (@azurite)

    I removed the code that the Tom McFarlin solution suggested. The redirect isn’t happening anymore, so I’m wondering if it’s just because I moved the domain-mapping.php file from mu-plugins and into the normal plugins folder.

    Is that safe?

    Plugin Author Ron Rennick

    (@wpmuguru)

    Is that safe?

    That wouldn’t have affected anything but it’s fine in either the plugins folder or mu-plugins folder.

    Thread Starter Azurite

    (@azurite)

    Okay, I noticed something odd:

    My normal browser, Safari, started working again without the infinite redirects even with the domain-mapping.php in the regular plugins folder. But I started using a different browser today, Chrome, and now I get the infinite redirects again.

    I have my .htaccess file set so that only certain IP ranges will be allowed to access wp-login.php, but it hasn’t changed since long before I installed the Domain Mapping plugin. How can I get it so it won’t infinitely redirect…or else figure out WHERE the redirect is coming from?

    Thread Starter Azurite

    (@azurite)

    I did have the following line in my .htaccess

    RewriteRule ^indigo$ "http\:\/\/www\.meredithsweet\.com\/" [R=301,L]

    which I tried removing, since I used to utilize a subdomain with a redirect (indigo.seventh-star.net to meredithsweet.com), and since I was able to get this plugin and change meredithsweet.com to be a parked domain, I didn’t do that anymore…

    But it doesn’t work.

    And someone accessing the website from a non-allowed IP address should see my 403 Forbidden error page.

    How do I figure out where the error is coming from? My host seems to think it originates with this plugin somehow.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Constant redirects’ is closed to new replies.