Try adding something like the following at the top of your .htaccess
file:
RewriteCond %{HTTP_HOST} ^(www\.)?oldone\.com
RewriteCond ${REQUEST_URI} !^/wp-admin
RewriteCond ${REQUEST_URI} !^/wp-login
RewriteRule . http://newone.com%{REQUEST_URI} [R,L]
Make sure the browser cache is clear. Change to 301 (if that is the intention) only when you are sure it’s working OK.
Repeat for any other oldoneN.com
/ newoneN.com
combos, unless there is a pattern with the domain names?
Alternatively, if you never want to redirect /wp-admin
or /wp-login
etc for any domain then you could include an exception for these URL-paths. Although that would probably interfere with some of the other MU directives.
Related Posts:
- WordPress Multisite – Multiple subfolders for blogs
- WordPress multisite subdirectory redirect infinite loop issue
- multisite htaccess 301 redirects
- W3 Total Cache Plugin with WP 3 MultiUser [closed]
- Domain redirect in WordPress multisite
- Why wordpress multisite redirect to wp-signup if site exists?
- Sub-subdomain getting redirected to main domain
- How to properly force https and www on multisite with Apache HTAccess
- How to exclude a directory from WordPress permalinks in a Multisite environment?
- How to disable the default WordPress redirect to non-www URLs?
- Redirect subdomain in Multisite installation?
- Issue with htaccess redirection in WP Multisite
- Redirect only posts to New Domain
- Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite
- Temp URL Redirect Loop
- WordPress Multisite Strange Redirect on Primary Site
- Wrong Redirect/Rewrite Rules?
- Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
- URL without www redirect directly with submission page – Multiwordpress install
- Redirect old uploads after moving to multisite
- WordPress: how to change URL for individual MultiSites?
- Multisite Subdomain Redirect Mask
- Cannot use Network Admin (Dashboard) on Multi-site after 301 www redirect
- Working with Reverse Proxies and Multisite Installation
- multisite 404 subfolder same name slug as site
- After switch domain, some parts of my site still point to my old domain
- How to make the redirects right? IP to domain name folders
- How To Change the URL of a WordPress Multisite
- Redirect extra url to Multisite in folder
- Multisite redirect loop for a single www domain
- External rewrite rules missing in htaccess – Multisite
- Moving a WP Multisite to a subdirectory
- WP-Admin not working properly at WordPress multisite with subdirectories
- WordPress Multisite. Can domain be used instead of subdomain?
- Multisite Subdomains result in 403 Forbidden
- Multisite: Develop locally using production images with .htaccess
- Multisite 404 errors and non-www redirecting to home page
- How to prevent hotlinking with htaccess in WordPress and why most common use about it doesn’t work?
- WordPress multisite with domain mapping and virtual host on local with fake domain
- Redirect all users, except network administrators, from the main site to a subsite
- Multisite non-www domain redirects to sign-up
- WordPress network (multisite) /wp-admin/ redirect loop (ERR_TOO_MANY_REDIRECTS)
- Suppress subdirectory from WordPress Multisite primary URL
- Multisite non www domain gives registration error but should redirect to www.domain.com
- Redirect loop (only for multisite network admin)
- WordPress Multisite Login Access
- Jetpack Blog Subscriptions on Multisite [closed]
- WordPress multisite htaccess
- Multisite Subdomain Using More Resources Than Others?
- wordpress htaccess is hijacking my .mp4 files
- WordPress multisite with multiple parent domains
- WordPress mutisite migration
- Redirect users on logout
- 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
- Create rewriterules for different domains in htaccess file with WP multisite
- Auto Redirect after login
- forward domain name to particular page?
- Site kit Google Analytics setup giving Error: {“error”:”invalid ‘redirect_uri'”}
- All pages have 302 redirect, which I can’t remove
- How to redirect URL with subfolder to the same URL but without subfolder?
- How to redirect one page on the subdomain
- add_rewrite_rule on multisite doesn’t work
- Redirect & permalink problems after moving multisite to a new server
- How to configure Multisite Network with randomized hostnames?
- WordPress Multi-Site on Ubuntu 18.04 LAMP Keeps Re-Directing
- htaccess file for multiple CMS’s (multisite wordpress + wolfcms) on same domain but different subdirectories
- WordPress multisite .htaccess causes 500 error on old *.php URLs
- Redirect One Multisite to Another
- WordPress Multisite + Erros with URLS and ADMIN
- 301’s not working with multisite
- Redirect to localhost after installing Multisite on server
- How to protect specific uploaded files from being accessed by non-logged-in users in WP-multisite
- Hosting 2 WordPress websites in /public_html/ & /public_html/subdirectory/ at the same time
- How to Deny Access to No Referrer Requests on Multiste with Mapped domains
- Multisite – One Site with multiple URLs
- Multisite Redirect for Home Page Only
- 404 not working on main site on multisite
- Is there something I need to know in order to use WordPress on foreign (Swedish) TLDs?
- WordPress Multisite and how to apply sef urls only to specific sites
- How many .htaccess files should a WordPress multisite (subdirectory set up) have?
- Multisite htaccess file causing segfault (Segmentation fault 11)
- Redirecting specific sites to HTTP in WordPress Multisite
- Multisite wp-admin redirecting to main wp-admin using NGINX
- trying to install a wordpress multisite in a subfolder and have custom subsite urls
- Multisite htaccess with domain rewrites
- Create new multisite from existing and keep domain?
- Multisite WordPress Configurtion
- Multisite login and redirect to users main blog,
- Multisite, different domains, optional subdirectory, and htaccess
- 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?
- Development (multi)site indexed – recommendations to redirect 301 to correct url?
- Nginx Multisite redirects (incorrectly) on Chrome IE and Mobile, but works (correctly) on Firefox
- Permalinks in Multisite not working
- How to redirect root blog to a specific one in multilang WP?
- Subdomain add comment redirect to 404 not found page iis server
- 404 error in dashboard of subdomain of multisite