What are your domain mapping settings? and
What is the primary domain for the site in question>
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.
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.
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?
Is that safe?
That wouldn’t have affected anything but it’s fine in either the plugins folder or mu-plugins folder.
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?
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.