i have a problem with Permalink as: former, i have set Structure Permalink as: /abc-%postname%/ now i change (remove abc-) and set Structure Permalink to Post name as /%postname%/ but all my link is error 404.

Any idea for auto redirect Permalink /abc-%postname%/ to /%postname%/

Thank you very much.


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]
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.