url rewriting – Wrong rewrite rulus

Question

I have rewrite like this

    'forum/(.+?)/?$' => 'forum=$matches[1]',
    'forum' => 'pagename=forum',

website.com/forum -> correct
website.com/forum/page/2 -> 404 because it detect ‘page’ as post-type=forum but I only want make page ‘forum’ can do pagination

How I can overcame this issue

0
Baim Whello 2 months 2022-09-28T00:37:44-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse