You should be able to find lots of ‘301’ htaccess rules and examples here and via searching. But the basic is to redirect an ‘old’ folder to a ‘new’ folder. The ‘new’ folder can be any site or page on a site.
RewriteRule ^old/(.*)$ /new [L,R=301]
That will redirect www.example.com/old
(any page) to www.example.com/new
. And the ‘301’ says that it is permanent, so will eventually update and search results for the old page.
This site is great for testing htaccess rules: https://htaccess.madewithlove.com/
Related Posts:
- How to modify author base slug with groups and slug to use nice_nickname?
- Multisite wordpress and subdomain URL collisions
- Rewrite rules in multisite
- add_rewrite_rule not registering on Multisite
- Add Rewrite Rule to point to a file on the server
- Members area with externally-managed htaccess / htpasswd authentication?
- Custom rewrite rule sends 404 header on multisite
- wordpress multisite subsite rewrite rules not working for videos
- How to disable the default WordPress redirect to non-www URLs?
- web.config breaks the themes for sub-directory multisite
- ReWriteRules and WordPress Multi-Sites with Sub Directories
- How to configure Multisite Network with randomized hostnames?
- URL redirect/rewrite rule wordpress multisite
- WordPress rewrite multisite blog url
- Nginx — WordPress multisite with root folder in own directory
- One blog inside another
- wordpress multisite permalink structure: mostly subdomains but not all
- How To Run Multiple Multi-Site Networks On Same Box [closed]
- How to Force WWW. in Domain With WordPress MU Domain Mapping Plugin?
- Add www to the Root Site in WP Multisite Network
- Multisite problem with unexisting paths to CSS etc
- How to map domains to specific pages in WordPress and display them in the address bar?
- WordPress network, add extra directory to subsite urls
- There is how to change url domain on some posts?
- Applying Child Theme to another site, which has its own URL
- Add a custom word to the base of a multisite url
- Multisite custom rewrite urls
- Built-in Sitemap on Multi-site install produces 404?
- How can I configure WP multisite to use /blog/ as part of the path structures?
- How can I write a rewrite rule to appear to move a multisite?
- Network created blogs URL
- How to put a Custom Folder under one sub-site of Multisite WP?
- WordPress 3.0 Multisite – Child sites and backends appearing blank
- How to disable a network enabled plugin for just one site?
- Set default avatar network-wide
- wp-activate.php causing white screen of death
- Multisite: Develop locally using production images with .htaccess
- latest 5 posts using switch_to_blog loop
- How to prevent hotlinking with htaccess in WordPress and why most common use about it doesn’t work?
- restore_current_blog() vs. multiple switch_to_blog() followed by removing $GLOBALS[‘_wp_switched_stack’]
- How do I set a default theme in multisite network
- Multisite use language code as subdirectory
- Sub-subdomain getting redirected to main domain
- Using $wpdb Class to Pull Recent Comments Across a Network
- WordPress (+WPMU) Import/Export ALL settings?
- How to work on a live WPMS blog when domain is unresolved? [closed]
- How do you load WordPress from an external script when using MultiSite? [duplicate]
- Has WP and MU fully merged?
- Hook up MU site creation
- Migrate a WP website from a single-server single-domain to a multi-server multi-domain installation
- current_user_can() always returns true if user is super admin
- multisite hook for Add Existing User
- Displaying a message upon user registration
- How can i redirect my Blog to a Subdomain?
- WordPress Multisite Redirection Issue
- Multisite user roles – capabilities not working
- WordPress: how to change URL for individual MultiSites?
- Change main site in multisite install?
- Enable “My blogs” in a custom installation
- HTTPS Warning and Certificate Error when Updating Network
- Complex WordPress Website
- Where to set individual blog quotas?
- Create sub-domain for multisite and multi languages?
- How to retrieve Post Excerpt from a different site in the Network
- Changing the language for each individual site in wordpress multisite
- how to have __() translating in languages different from admin?
- 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 change a user role after registering in multisite?
- Set a default page template to load for multi-site
- Multisite questions
- Delete user from multisite when removed from subsite
- how to control display switch_to_blog( $subsite->blog_id ); $tags = wp_tag_cloud
- WordPress multisite with domains and subdomains
- Which Multi-language option for WordPress is best from an SEO and Woocommerce perspective?
- Multisite 404 page
- Sort posts according to date
- Multisite for main in subdirectory, subdomain and subfolders (EN/ES)
- the_content not working on one of two Multisite sites
- filter posts without images or featured image
- On a multisite environment, get the subdomain value as variable
- Tracing non-uniform slowdown on a multisite install with multiple domains
- After switch domain, some parts of my site still point to my old domain
- Hook into ‘admin_url’ but only on Mysites admin bar menu
- Add file at the root of mapped domain in multisite
- WordPress multisite REST API connection refused with android – redirects to home page when using IP address in Postman
- Multisite installation steps?
- Pass form inputs to page content
- How to connect existing subdomains to new wordpress multisite?
- WordPress Multisite with cPanel Addon Domains and SSL
- Shared upload folder in wordpress multisite with custom sub site domain pictures URL:s
- Multisites with different root directory
- New domain in multisite environment
- Domain Mapping with WPMU
- Multisite “Skip Confirmation Email” Log Out Problem
- Disable/Remove default blog on Multisite Setup
- How can I display all Multisite blogs where this user is administrator?
- How to remove index.php from a tag or archive page URL in the root blog?
- Post migration from one site to another site in a network
- Are there any hosting companies that are already setup and configured for TLD domain mapping?