Redirection problem after migrating the Permalink.
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Redirection problem after migrating the Permalink.’ is closed to new replies.