• I just changed the URL structure on the pages of a WordPress website. Basically the posts were under the www.site.com and then pagination would give www.site.com/page/2/ etc…

    I added a Posts Page called Blog and now the pages become www.site.com/blog/page/2/ etc..

    Now if I go any the www.site.com/page/x, it will basically always show the same page with the latest articles.

    Since the www.site.com/page/x/ were indexed, now I’m having an issue.

    Ideally I would redirect the www.site.com/page/2/ to www.site.com/blog/page/2 but now sure if that’s the solution.

    Thank you!

    • This topic was modified 5 years, 2 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Seems reasonable to me, as long as the new home page will never be paginated. A redirect can be done with a .htaccess directive. Untested but something like:
    RedirectMatch 301 /page/([0-1]+)/?$ https://example.info/blog/page/$1/
    Be sure to change “example.info” to your proper domain name. And use “https:” if you have a SSL certificate.

    Thread Starter cris2016

    (@cris2016)

    Thank you! I appreciate the response. What do you mean by the new homepage will never be paginated?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress Regex redirect 301’ is closed to new replies.