Your best bet will be a bunch of apache rewrite rules. Place something like this above the # BEGIN WordPress
line in your .htaccess
file:
<IfModule mod_rewrite.c>
RewriteRule ^subdirectory/(.*)$ /anotherdirectory/$1 [R=301,NC,L]
</IfModule>
So, using your example of redirecting /review
to /reviews
:
<IfModule mod_rewrite.c>
RewriteRule ^review/(.*)$ /reviews/$1 [R=301,NC,L]
</IfModule>
You can put as many rules as you need (i.e. 1 for each sub directory). You can read more about mod_rewrite
here.
Related Posts:
- Get a permalink structure of /%posttype%/%category%/%postname%
- Get full control over custom post type url
- Adding categories to custom post type in permalink
- Add .html (dot HTML) extension to custom post types
- How to change permalink structure for custom post type and it’s taxonomies?
- Is there a way to use regular categories with custom post types?
- Change the url of Projects in Divi Theme
- On clicking on the category name the page is redirecting on 404 pge
- How to show custom taxonomy in the permalink?
- Custom post types and permalink
- CPT posts listed by category with custom rewrite URL, please help!
- Possible for Category Base and Custom post Type to share the same slug/permalink?
- How do I get the permalink structure to work like this?
- Custom Post Types and independent Categories – complex Taxonomy
- Bizarre Permalinks Issue: 404 Errors Everywhere
- How to detect filter in URL in Category page?
- Custom Post type and permalink settings
- Add custom post type settings to wordress default posts
- create a subcatagory for a custom post type and out put url as posttype/subcategory/item
- Can’t remove front from permalinks for custom taxonomy category page
- Remove CPT name from permalink but add %category% instead
- CPT category hierarchy
- retrieve permalinks of posts inside custom post type by using post ID
- Custom Post Type Category URL
- Custom Post Type with modified permalink structure results in 404
- Custom post type category permalinks and archive pages
- I want to rewrite the URL of a specific post with a specific custom field to easily analyze in Google Analytics
- Searching in multiple category + URL hierarchy in real estate WordPress site
- Preview url not working outside wp-admin
- Modify category permalink to use post type slug
- Category permalinks don’t work even after flushing
- CPT – Custom Text fields point to new url permalinks
- Adding categories to custom post type in permalink
- Change custom post type permalink according to category
- Custom Post – additional param in the custom post URL goes to error page
- how to use two permalinks for one custom post type based on categories
- Do not output category and tag URLs
- Custom post type with parent page? Possible?
- Custom Post Type + Category archive
- Custom Post Type Categories Not Maintaining URL structure any more
- Category slug not showing for Custom Post Type
- Customize category URL
- Category / Custom Post Type permalink issue
- Custom Post Type Permalinks with %category%
- Remove slug from Custom Category Permalink + dual-category permalinks
- Custom post type and category permalinks
- Hide custom post type slug url from search engine [closed]
- Is it possible for post and custom post type to share a category base slug?
- How to get the proper category in permalink with custom post type assigned to multiple categories
- How to Display Content from Search URLs on Permanent URLs in WordPress?
- How to correctly edit permalink structures for both default and custom posts/taxonomies?
- Custom post type, taxonomy and admin bar
- Permalink Trouble with custom post types
- Add unique ID number to end of permalink
- Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?
- Custom post type specific category box
- Custom Post Type – Main page for certain posts
- Pagination does not work on Custom Post Type archive while trying to get load more function working
- Custom Taxonomy Taxonomies of Same Name point to first created URL
- CPT archive page – show one post from each taxonomy term
- Subpages Permalinks Issues
- Permalinks not working (404) for the ‘item’ post type
- how to organize my categories or should I do custom post types for some?
- Wp PageNavi only works with default permalinks on a custom post type?
- Custom category URL not displaying posts
- Safe to throw 404 error in request filter?
- Multiple permalinks for a single post with multiple taxonomies
- Order Categories by Hierarchy?
- Custom post type permalink structure to include the taxonomy
- If custom category search then page 2 not found
- Advanced archive url structure (category, tag and date)
- Custom Post Type permalink doesn’t match post permalink
- WordPress custom posts and permalinks
- Change permalink for custom post type?
- One Custom Post Type two different Templates
- Custom post type, permalink, add query variables problem
- Displaying taxonomies as category links within sidebar and creating pages for these
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- Can’t Get Parent and Child Categories of Custom Taxonomy to Display
- category.php not showing custom post types
- How to use taxonomy term as permalink folder
- Show the categories the current post has
- WP 3.1 custom post type permlinks
- Custom post type items open in archives?
- Custom Post Type Child Won’t Come Through With Pretty Permalinks
- custom posts permalinks url rewriting
- Use a different URL path / permalink for CPT
- Stop displaying Permalink
- WordPress Primary Category Changes After Import, Permalink Issue
- returning the currect URL for nested posts
- Adding /blog in front of single posts (only)
- Multiple categories assigned to a single product breaking the breadcrumb
- Disable permalinks, but allow RSS feeds
- How to remove /blog/ prefix for custom post types in permalinks?
- Duplicate slug/permalink issue while adding same post name
- CPT permalinks Rewrite
- Permalink with hierarchy of Custom Post Types
- How to divide Subcategories into pages of parent category wordpress
- how to achieve this permalink abc.com/CPTName/CustomPostTypeCategorySlug/categoryname
- Display all Categories except ones with a specific parent