I have wordpress site on say: http://xyz.com/category-name/
now I changed the category slug to new-category-name
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?
It looks like the server cached the old .htaccess for a while. Now it started to work as expected.
Have you heard of the redirection plugin?
http://wordpress.org/extend/plugins/redirection/
One of the most powerful features is it tracks changes in post URL’s and creates 301 redirects to the new pages automatically… saved me a ton of work.
Try refreshing the permalink structure going to Settings->Permalinks.