Inserting Directory to File Path Via .htaccess
-
I accidentally set our blog’s permalinks during development so individual posts publish to the root directory, like this:
https://www.benedictinewomen.org/post-title
This means categories published like this:
https://www.benedictinewomen.org/category/sample-category
I have now corrected Permalink settings to individual posts publish to a blog directory, like so:
https://www.benedictinewomen.org/blog/post-title
How can I write a redirect so that all the category and tag links around the site work again? So for example, a link to:
https://www.benedictinewomen.org/category/sample-category
would redirect to
https://www.benedictinewomen.org/blog/category/sample-category
Thanks!
- The topic ‘Inserting Directory to File Path Via .htaccess’ is closed to new replies.