Changing category slug messes incoming links to posts in WordPress

I have wordpress site on say: http://xyz.com/category-name/

now I changed the category slug to new-category-name

Read More

When I paste this in the browser:

http://xyz.com/category-name/post-name/

it redirects me to

http://xyz.com/new-category-name/

instead of

http://xyz.com/new-category-name/post-name/

I already tried

something like:

RewriteRule ^category-name/(.*) http://xyz.com/new-category-name/$1 [R=301,L]

but it does not work…
how can this be fixed?

Related posts

Leave a Reply

3 comments