• when the post permalink is /blog/%postname% the URL is parsed like this (according to debug). Note “name=page” instead of “name=blog”

    Request:
    blog/page/6

    Query String:
    page=6&name=page&post_type=post

    Matched Rewrite Rule:
    blog/([^/]+)(?:/([0-9]+))?/?$

    Matched Rewrite Query:
    name=page&page=6&post_type=post

    I believe it is related to the issue here
    https://wpquestions.com/Rewrite_rules_pagination_problem/15041

    according to Rewrite Analyzer this rule
    blog/([^/]+)?(:/([0-9]+))?/?$ => name: page, page: 3, post_type: post

    is firing before
    (.?.+?)/page/?([0-9]{1,})/?$ => pagename: blog, paged: 3

    thanks for any advice
    J

    • This topic was modified 7 years, 10 months ago by jmp909.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘blog/page/N breaks if permalink is /blog/%postname%’ is closed to new replies.