I currently have a page called “Blog” (slug “blog”), which loads a index.php. All posts in index.php belong to only one post category. A sidebar on index.php contains category links (via wp_list_categories) which load archive.php for that given taxonomy.
The problem I am running into is that I currently have the category base name set to the same slug as the page: “blog”. I am aware that this can cause issues with the rewrite rules, but for the most part everything looks fine. The only issue is with pagination pages for index.php (mysite.com/blog/page/2 does not work while mysite.com/blog/foo-category/page/2 works fine).
Is there a rewrite rule that can help with my current situation? And if so some help would be appreciated.
If this is a bad idea, please speak up as well. I was hoping to achieve a somewhat RESTful url structure, but wordpresses permalink structure doesn’t appear to be the most flexible.
Thanks
This is untested, but should work for you. Visit the permalinks settings page to flush rewrite rules after adding: