Configuring separate permalinks for posts and archives

Question

I’m working on a site where posts are organised by category/year/month/posts.

/%category%/%year%/%monthnum%/%postname%/

I’ve had a request to provide the site category/year/month archives (/%category%/%year%/%monthnum%/) – however I’m getting a conflict with the above permalink structure.

Whilst I can get the initial view working for category/year/month archives, i get 404 errors for any trying to look at other pages in the that archive category/year/month/page/2

I assume this is occurring as the rewrite rule is expecting the %postname% as set as parameter 4 in the custom permalink structure.

Is there a way I can get around this request for archives that follow a similar url to posts?

Or is there an alternative approach to this?

I also have page breaks in posts – example: /%category%/%year%/%monthnum%/%postname%/2

Thanks

0
onebitrocket 2 years 2020-10-25T05:10:18-05:00 0 Answers 12 views 0

Leave an answer

Browse
Browse