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?
- WordPress 3.3 custom post type with /%postname%/ permastruct?
- Why does a custom post type need the ”hierarchical’ args setting?
- Permalink rewrite with custom post type and custom taxonomy
- how do I group content in magazine-style ‘issues’?
- Permalinks in Custom Post types
- Custom Post Type with Nested Taxonomy and Template Files
- Use standard WordPress categories with a CPT
- Disable WordPress Recognizing Path as Attachment
- Get the post_type of current taxonomy or category page
- get_categories() for only CPT
- custom taxonomy archive by year
- Display Next/Prev when looping Custom post-types archive?
- How much control do we have over CPT rewrite slugs? Can I create a “root” page for my CPT with out the page path, and then have paths for other pages?
- Wrong generated page_name/slug on first publish of custom post type
- Get posts from a custom post type by child categories of a parent category
- How can achieve this permalink perfectly? domain.com/%category%/%post-name%
- custom-taxonomy/post_name instead of the default post_type/post_name
- Getting categories of posts under a custom taxonomy
- Custom Permalink to remove category word , keeping posts permalink with date?
- Rewrite Rule for showing Parent/Child Relationship between Two Hierarchical Custom Post Types
- How to include term custom meta into the custom taxonomy term permalink structure
- Custom Post Fields at the beginning of a Custom Permalink
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Custom templates for a specific category
- Get parent category id from child category page for custom taxonomy
- Remove custom permalink structure from custom post type without modifying register_post_type() directly
- Rewrite permalink for multiple post types (CPT) with taxonomy term
- Custom post not appearing under custom taxonomy category
- Safe to throw 404 error in request filter?
- If custom category search then page 2 not found
- Show the categories the current post has
- WP 3.1 custom post type permlinks
- 404 error rewrite permalinks
- URL for archive of custom post type with 2 taxonomy terms
- CPT and rewrite rules
- Custom post type single with custom URL structure
- Get posts in custom post type categories
- Counting the number of post without custom post type
- Custom Template for CPT Categories
- How to redirect CPT permalinks from ID to default pretty permalinks?
- Multiple archives for cpt, taxonomies, terms
- Page to show custom posts and one category
- Have two (permalinks) urls for a same custom post type
- change precedence of permalink for post_types?
- How to make nested custom post type slugs work
- Custom Post Type Permalinks Problem
- Problems with custom post type and hierarchical permalinks
- Bulk remove category from custom post type?
- Links in archive not including taxonomy parameter
- Get permalink in custom post type loop doesn’t work
- Can WordPress show posts based on a button that the user clicked 2 pages back?