• I recently migrated the permalink for my website posts from /%postname%/%post_id%/ to /%postname%/ . I have added this line at my htaccess file to redirect the older urls.

    RedirectMatch 301 ^/([^/]+)/(\d+)/$ https://www.mysite.com/$1

    This rule is working fine for the posts of my site. But the problem is with the sub pages of my home page. The sub-pages are redirecting to a 404 not found page. e.g https://www.mysite.com/page/2/ is now redirecting to https://www.mysite.com/page which returns 404.

    What to do to avoid this issue?

Viewing 1 replies (of 1 total)
  • Depending on how many posts you have to redirect, I’d take a look at 404 Redirected, which can capture the 404s and allow you to create the 301s that way. This is how I typically create the 301s ??

Viewing 1 replies (of 1 total)
  • The topic ‘Redirection problem after migrating the Permalink.’ is closed to new replies.