• Resolved milleronic

    (@milleronic)


    Blog page pagination was not working after redirection latest plugin version. Reset permalinks, disabled plugins one at a time. Redirection was the culprit. The site in question needs this plugin, any ideas on how to fix?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter milleronic

    (@milleronic)

    Setting permalinks to default, blog pagination works. Unfortunately pretty permalinks are needed on this site. I have a custom structure of /blog/%postname%/

    Plugin activated on local (VVV) environment does NOT break blog pagination with similar dev/prod server params (PHP7, nginx, PHP-FPM). I have not been able to break blog pagination on local with any active plugin combination.

    • This reply was modified 7 years, 2 months ago by milleronic.
    • This reply was modified 7 years, 2 months ago by milleronic.
    Thread Starter milleronic

    (@milleronic)

    Another regex redirection was ignoring the ‘/page/’ in the permalink. Added an exception to the regex, and a pass-through for paged posts.

    pass-through

    /blog/page/([0-9]+:[0-9]+)/
    /blog/page/$1

    and
    regex for blog posts – 301 redirect

    /blog/(?!page)/(.*)/$
    /blog/$2

    Please mark as resolved.

    • This reply was modified 7 years, 2 months ago by milleronic.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirection breaks blog pagination’ is closed to new replies.