Permalinks – Adding prefix to /y/m/d/ breaks yearly archive
-
I have set my site up to use permalinks with date based URLs, so posts are at ‘/yyyy/mm/dd/post-slug’, and categories are at ‘/archives/cat-slug’, with a page, called ‘archives’, as well, available at /archives/’
I would really like to prefix the post URL with ‘archives’ too, so a post URL or date based archive URL would be ‘/archives/yyyy/mm/dd/post-slug’ or similar and everything blog related would be in the folder archives in the URL, (makes sense in my head). However, if I set this up, any year based url, such as ‘archives/yyyy’ doesn’t work, and simply redirects to the ‘archives’ page.
Is this possible to do, or is WordPress treating the first folder after ‘archives’ as a category, even if it is numeric, (if so, this could be resolved and is possible in PHP frameworks like CodeIgniter – see routing at http://www.codeigniter.com/user_guide/general/routing.html). Would I have to have ‘/archives/category/category-slug/’?
- The topic ‘Permalinks – Adding prefix to /y/m/d/ breaks yearly archive’ is closed to new replies.