It’s likely down to an nginx configuration if your server runs nginx.
For example, an nginx default config could contain:-
if ($host ~* ^www.domain.co.uk) {
rewrite ^(.*)$ https://domain.co.uk$1 permanent;
}
This would result in your server trying to set a 301 redirect from www to non www but then when www is defined in WordPress, the server tries to redirect back to non www causing an infinite redirect loop.
We’ve recently experienced this with a WordPress website and exhausted every possible route on the WordPress side as it sounds that you have done subsequently coming across the nginx config at domain level on the server.
Related Posts:
- WordPress Multisite Strange Redirect on Primary Site
- How to use WordPress Multisite With Different Domain Names?
- How to use alias domain for multisite installation?
- Changing Multisite URL after the subsite has been in use
- How do I use different domain for subdomains in WP Multisite?
- WordPress multisite with multiple parent domains
- How to Redirect login User with Mapped Domiain Primary blog Url to Original Sub-site Url
- WP Multisite – domain mapping to domain.com and separate site to domain.com/help
- Multisite Redirection to new domains
- Link structure, WordPress IIS
- WordPress Multisite + Erros with URLS and ADMIN
- Install multisite wordpress on a subdomain and map to top level domains
- Multisite – One Site with multiple URLs
- Different Domains in Multisite Setup
- Multisite on single wordpress
- Folder structure when using multiple domains with WordPress
- How to Force WWW. in Domain With WordPress MU Domain Mapping Plugin?
- Serve theme and plugins assets from correct domain on multi-domain multisite
- After switch domain, some parts of my site still point to my old domain
- new WPMS site not working / Q setting up new site/subdomain
- How to set up wordpress domain mapping on MAMP Pro
- WordPress Multisite. Can domain be used instead of subdomain?
- Multisite 404 errors and non-www redirecting to home page
- sunrise.php for multi-network install of domain mapping plugin
- multisite htaccess 301 redirects
- WordPress multisite with domain mapping and virtual host on local with fake domain
- Is it still only possible to do multisite domain mapping with a plugin in WordPress 4.1?
- How to manage multiple domain with different languages on each domain with single wordpress installation?
- W3 Total Cache Plugin with WP 3 MultiUser [closed]
- Redirect all users, except network administrators, from the main site to a subsite
- Multisite non-www domain redirects to sign-up
- Domain redirect in WordPress multisite
- Multisite non www domain gives registration error but should redirect to www.domain.com
- Redirect loop (only for multisite network admin)
- Jetpack Blog Subscriptions on Multisite [closed]
- Sub-subdomain getting redirected to main domain
- Possible to create a multisite network where the main site is non-WP?
- Multisite Subdomain Using More Resources Than Others?
- WP 4.4 – domain mapping for sites within a multisite network?
- Multisite, multiple domains per site
- Migrate a WP website from a single-server single-domain to a multi-server multi-domain installation
- Multisite Network menu links not updating
- How to disable the default WordPress redirect to non-www URLs?
- Auto Redirect after login
- Multisite domain naming
- Site kit Google Analytics setup giving Error: {“error”:”invalid ‘redirect_uri'”}
- All pages have 302 redirect, which I can’t remove
- Redirect only posts to New Domain
- Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite
- How to redirect one page on the subdomain
- Redirect & permalink problems after moving multisite to a new server
- How to configure Multisite Network with randomized hostnames?
- WordPress Multisite with Addon Domains (not parked domain) [closed]
- Mapping domains to WordPress network installed on subdomain
- One WordPress Installation for 2 Domains
- WordPress 4.5+ Multisite Domain Mapping
- Redirect One Multisite to Another
- Multisite – Parent site with Polylang with different domains for each language [closed]
- Site redirecting to http://example.com/wp-signup.php?new=example.com
- WordPress: how to change URL for individual MultiSites?
- Login problems on multisite installation with different domains
- Is this a job for WP MultiSite with domain mapping plugin?
- network site domain mapping still applied after being removed
- Multisite Subdomain Redirect Mask
- Domain Mapping for WordPress MU and https redirection – How to?
- Multisite domain mapping breaks CSS
- A WordPress site with more than one domain name / Parked domains
- WordPress MU subdomain vhost
- Domain mapping with Multisite links are wrong
- How to temporarily redirect front page of a network to one of the sites/blogs?
- Multisite: Redirect to appropriate domain if subdomain doesn’t exist
- How to Deny Access to No Referrer Requests on Multiste with Mapped domains
- Sub-sub folders of WordPress Multisite subdirectory
- WordPress multisite with domains and subdomains
- Working with Reverse Proxies and Multisite Installation
- Forward and mask a WordPress website
- the_content not working on one of two Multisite sites
- WordPress Multisite and how to apply sef urls only to specific sites
- Migrating from domain mapping plugin to native domain mapping
- Add file at the root of mapped domain in multisite
- Multisite wp-admin redirecting to main wp-admin using NGINX
- Multisite (with nested paths) wp-admin redirect loop
- WordPress Multisite with cPanel Addon Domains and SSL
- New domain in multisite environment
- MU domain mapping without using a plugin
- How To Change the URL of a WordPress Multisite
- Using www along with non-www for main domain in multisite installation
- Multisite: Redirect Subsite Administrator to Subsite Home Page, Bypassing Dashboard
- Admin user getting redirected to /wp-admin/user
- Make a select where the options are the different multisites
- Is there a way to have wordpress 301 versus 302 urls by default?
- Some Subdomains on a Multisite Install Not Found
- Development (multi)site indexed – recommendations to redirect 301 to correct url?
- Redirect authors from upload.php url to Home page in Multisite
- Nginx Multisite redirects (incorrectly) on Chrome IE and Mobile, but works (correctly) on Firefox
- How to redirect root blog to a specific one in multilang WP?
- Subdomain add comment redirect to 404 not found page iis server
- how to get my WP site’s IP? [closed]
- Map WP Multisite blog.example.com to anotherdomain.com/blog?
- Have two domains point to the same content on a wordpress multisite