0
votes

I'm using this plugin: https://wordpress.org/plugins/wordpress-mu-domain-mapping/

I’m not sure if I’m going about this the right way. I need to have multiple domains pointed to a sub site on a network.

Basically example.com and sub.example2.com and not have sub.example2.com just redirect to example.com

Plugin config:

Domain Options Remote Login – Off

Permanent redirect (better for your blogger’s page rank) – Off

User domain mapping page – On

Redirect administration pages to site’s original domain (remote login disabled if this redirect is disabled) – Off

Disable primary domain check. Sites will not redirect to one domain name. May cause duplicate content issues. – On

The problem I’m having is that sub.example2.com has a redirect loop and I’m not sure why.

Would anyone have any ideas why this might be happening?

1

1 Answers

1
votes

Not a direct answer but pointers to help debug

First off the domain mapping plugin is no longer needed since WP 4.x
I recommend turning the plugin off and removing sunrise from in wp-config.php

To check if the redirect is caused by WP try to visit a static file on all domains. Like /readme.html and /license.txt. If these static files are also redirected the problem is the webserver, check hosting stettings and .htaccess

home and rewrite pages that are handled by WP and it's rewrite rules

Check in the wp_blogs table what url is set. also check the wp_options tables of each site for the home and siteurl.

In the wp-config.php you could also set urls check DOMAIN_CURRENT_SITE, WP_HOME and WP_SITEURL

If you make changes remember to flush the rewrite rules (just save the permalinks any site).

Good luck