On your olddomain.com, if you’re using an apache server, add .htaccess
rewrite similar to:
RewriteEngine On
RedirectMatch 301 /subdirectory/(.*) http://newdomain.com/$1
This will take any olddomain.com/subdirectory/{site_slug}/
requests and 301 redirect them to newdomain.com/{site_slug}
Related Posts:
- Site admin in a network install can’t edit users?
- Multisite Domain Mapping with SSL
- Basic Multisite Question – Managing Content Centrally
- WP-Admin not working properly at WordPress multisite with subdirectories
- Multisite – Keep users logged in only to their site
- Is there an easy way to separate themes on network?
- Multisite – sub-subfolders for certain blogs
- Multisite behind Varnish
- How do I know if a user has a blog in WordPress Multisite?
- Multisite with Different Domains
- Weird Issue with load balanced WP 3.0 setup
- Configure WordPress to read from database only, never write
- How does WordPress connect sites and the wp_users table?
- Hook filter to change wp_upload_dir() path in multisite
- How to migrate WordPress Blogs into Multisite without using the GUI-Import/Export Feature
- WordPress network (multisite) /wp-admin/ redirect loop (ERR_TOO_MANY_REDIRECTS)
- Suppress subdirectory from WordPress Multisite primary URL
- Copy posts from one blog to another in multisite environment
- SSL for mapped subdomains in multisite (no plugins)
- Child Theme CSS Not Overriding Parent Theme In MultiSite Site
- Has anyone experience w/ WordPress (MultiSite) hidden users (possibly hacked)?
- Why wordpress multisite redirect to wp-signup if site exists?
- Is the W3 Total Cache plugin a good choice for WordPress MultiSite? [closed]
- How To Remove Dashboard Menu Items for Multisite Users?
- Can wp-cli display all users and their roles across all sites in a multisite instance?
- Is it possible to import a wordpress backup from a single site in to a multi-site configuration?
- Multiple domains with different child themes on one installation?
- Staging setup for multisite installation
- Changing wp-content to other name? Multisite set up
- Redirect users on logout
- Multisite: I have a gap in my blogs. How to add the missing one?
- Create rewriterules for different domains in htaccess file with WP multisite
- Force Load https WordPress Plugins
- Free Google Analytics plugin that works with WordPress in network mode (WPMU)? [closed]
- How Access Multiple WordPress sites with a single login
- Adding an existing subfolder site to a fresh multisite in the root, would it cause a problem?
- How to protect post attachments related to a custom post type, from non-logged in users, on 1 subsite of a multisite installation?
- Aggregate multisite RSS and restrict certain content
- Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
- WordPress Multi-Site on Ubuntu 18.04 LAMP Keeps Re-Directing
- How to force change Network site multi language subdirectory base URL?
- Create subdomain out of sight the wp multisite
- Nginx Wildcard SSL with WordPress Multisite Subdomains
- get_post_meta fails after switch_to_blog
- How to log out from wordpress multiple site?
- Multisite – create plugin to hide deactivated sites from the sites overview
- How to protect specific uploaded files from being accessed by non-logged-in users in WP-multisite
- Cannot use Network Admin (Dashboard) on Multi-site after 301 www redirect
- Suspicious mesage appears instead of images
- How do you update a network option value in the DB via a hook
- Two wordpress mu installs, same settings/plugins/themes?
- Where are the files that control the multisite user dashboard?
- How do I change discussion settings for all blogs in multisite?
- Restricting page templates by blog_id in multisite network
- Is There A Plugin to Create WP Multisite Installs programatically
- Can’t log in to wp-admin after setting up Multisite
- Should i install multiple wordpress for one site?
- Possibility of Synchronized and Exactly Same Multiple Sites via WordPress Multisite
- Multisite > Edit Site > Themes – what are these themes?
- Sharing /wp-content/ folder between different WordPress Multisite installs?
- wordpress multisite domain mapping redirects to original subdomain
- Multisite missing tmp folder error while uploading
- WordPress Multisite: Set template languages for a domain?
- WordPress Multisite Completely FUBAR?
- How to use global category code
- Is there something I need to know in order to use WordPress on foreign (Swedish) TLDs?
- Multiple domain names map to one site of wordpress subdomain multisite
- WordPress Multisite loads wrong subdomain dashboard
- How to map domains to specific pages in WordPress and display them in the address bar?
- WordPress API – sign-up to multiple Multisites from one single form
- Duplicate/Clone a Multi-site But Use Same Images & Resources?
- Redirect a user roll to a page after login in mutlisite network
- Create multiple clones of site with different branding?
- There is how to change url domain on some posts?
- How to get the categories of a selected blog on multisite?
- Modify new user email notification in network admin screen wp multisite
- Admin Ajax returns “0 200 OK server error..” in Multi-site sub-site
- WordPress Multisite: an official and definitive way to enable https ? (http to https)
- Multi-site Installation in WordPress | Security & Future Migrations
- Get the latest 3 posts across the network
- Multisite login and redirect to users main blog,
- Synchronize wordpress site between two different servers
- Blog broken after changing Site/Home URL
- What dictates whether a plugin will be available to a site in a multisite install?
- How do I setup WordPress Multisite in it’s own directory?
- Configuring Multisite with subdomains
- Autoblog posts in wpms(network) into main site including featured images
- Cron job disappering without notice?
- WP Multisite .htaccess interferes with cgi-bin
- Redirect all users, except network administrators, from the main site to a subsite
- How do I remove ‘www.’ from all internal links in self-hosted multisite?
- How do I make a copy of WordPress to other folder
- MU Domain mapping
- WordPress multisite with subdirectories always redirects to mainsite
- Avoid landing page redirects issue in wordpress multisite
- Multisite website configure Domain issue
- Can i use the same content in two websites? one is the main website and one is directory website
- WordPress Multisite
- Multisite admin panel not working after the update
- WordPress Network / Multisite login to one site allow access to all