I apologize for the following question. I’ve searched through forum posts and articles and have not found a definitive answer.
I’m redesigning a site on a fresh WP install. The old site had a custom Category base and the following permalink structure:
The new site has the default Category base and the following permalink structure:
I need to set up a 301 redirect in htaccess that correctly redirects the old posts. I understand the following rule will redirect the category base:
RewriteRule ^oldcategorybase/(.*)$ http://domain.com/category/$1 [L,R=301]
But what about the posts? Does anyone have the correct rewrite rule?
Note: I don’t want to use a plugin. I prefer coding it myself. It appears that all the redirection plugins don’t work.