You can use a rule in your .htaccess
(a file that will be in the root folder of your WordPress installation) – add this to the very bottom:
RewriteEngine On
RewriteRule ^/?abc-(.+)/?$ /$1/ [R=301,L]
Related Posts:
- Creating custom permalink structure for languages
- Permalink not working for page without title
- What is the difference between get_permalink vs get_the_permalink?
- Post titles not letting me use 2 consecutive dashes in permalink
- Using underscores instead of hyphens in the permalink
- How can I force WordPress to redirect to canonical permalinks?
- Make post slug have priority over category slug
- 404 on category.php pagination
- flexible rewrite ‘ramble’ URLs with WordPress
- Changing pemalink structure to /%post_id%/%postname%/
- Posts not working on windows after changing permalinks
- Custom permalink structure
- How to get rid of index.php?
- Relative or Absolute Paths for Flash Video Player Files
- Update Old Links To Pretty Permalinks Custom Post Type
- Remove Custom Taxonomy Slug from Permalink
- remove permalink trailing slash
- Use Single Blog Post as Site Front Page Without Redirect
- wordpress permalinks tweeks
- WordPress Links Not Working After Migration
- Redirect old permalinks with Month and name to Post name on new site
- .htaccess – Redirect duplicated post ended in ‘-number/’ to the same url without the -number/
- WordPress Permalinks on Mac OSX Server 5 (El Capitan)
- Adding File Extensions to Attachment Page Permalinks
- How to find out who handles a permalink?
- Permalink /%category%/%postname%/ returns 404 on OSX
- Page Attachment Permalink Structure based on Menu Order?
- stop the_permalink printing and save as variable?
- Permalinks for pages
- Custom theme navigation
- How to redirect to correct pages after permalink structure change
- Remove parent category from permalink but keep breadcrumbs structure
- Only plain permalinks working
- Add prefix to page URL based on the page template
- How to remove specific category from URL in WordPress
- How to set permalinks when posts and pages have different URL structures?
- redirect/ %category%/%postname%.html to /%category%/%postname%
- Permalink /%postname%/ doesn’t work
- Permalink Doesnt Work – URL Not Found
- WordPress 4.4 old permalink redirect
- Permalink structure with $_SESSION variables
- Relative v.s. absolute URLs: which ones should I use for cross-domain portability?
- Empty permalinks settings in .htaccess
- curl problem or permalinks
- How can I say if a URL is a post, page, or taxonomy archive?
- Can WP give a value a post ID?
- Page Name and Permalinks
- Getting back a permalink from custom url
- how to get a list of all top level pages
- Permalinks on Windows IIS not working and web.config breaks site – does wordpress not support windows server now, if so how?
- add_rewrite_rule on default post type
- how to find duplicated permalinks?
- Permalink sub-routing catch-all
- I’ve removed my /author/ slug but it clashes with new and existing pages. Any fixes?
- Changing the entire permalink
- How do i get post thumbnail using attachment code
- Access posts while mod_rewrite is broken
- permalink error when modifying sanitize_title_with_dashes function
- The requested URL was not found on this server [closed]
- Update page breaks permalinks
- How to create posts or pages with the names in wordpress?
- Permalinks Question: Adding a prefix ONLY in front of the posts
- Xampp 7.3.3 fresh install of WordPress 404 pages unless permalink is set to plain
- Make the blog page a child of another page and rewrite the blog url
- WordPress slug confusion
- Extending page urls without getting a 404
- Author URL using wrong domain after using Edit Author Slug
- 404 on wordpress multisite Permalink pretty URLs
- Permalink conflict with React Router in subfolder
- 404 on pretty permalinks when serving via HTTPS
- Why does page for hierarchical taxonomy parent term go 404?
- Custom permalink gives 404 error only in some pages
- Can I link to content dynamically from a page to a new page?
- Question About Permalink in wordpress
- Create new URL structure for custom post types
- append current user-id to all internal permalinks
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- Remove index.php from URL (WP installed in subdirectory)
- Page returns 404 for specific permalink
- issue with the_permalink
- Pagination links for taxonomy archive page 404 error on every page except first
- Single.php not loading when permalink only contains date information
- WooCommerce product permalink changed
- Facebook Share Permalink Javascript href
- Different Permastruck Between Ajax Request & Normal Request
- Links after changing hosting and domain
- Imported posts using wrong domain name
- Problem with multiple tags in URL
- Custom Permalinks and filters?
- ?posts_type=xxx not rewritten
- 404 error on second page load for child-pages
- Permalink structure as code in back-end?
- Internal Server Error every time I push up my WordPress Project to Heroku
- Category pagination first link works, remaining don’t
- WordPress custom permalinks, pages are now 404
- WordPress home page showing 404 error
- Why doesn’t my page know it’s a page (won’t return true for is_page())?
- AllowOveride All causes assetts and Admin Urls to 404
- Page permalinks are http but show up as https?
- Custom Permalink Structure For a Specific Category