Will this Code Work For Redirection After Permalink Change
-
I am planning to change the permalink structure of my website, at this time it’s like domainname.com/post-name/ and now I am planning it to change something like domainname.com/2016/02/postname/ID
I know after changing permalink I have to make 301 redirects and as I have around 3k+ post so doing manually is not the best idea for all post
What if I add the following code to .htaccess file? will its redirection work?
RedirectMatch 301 ^/$3 http://domainname.com/([0-9]{4})/([0-9]{2})/([^/]+)/(\d+)$
The topic ‘Will this Code Work For Redirection After Permalink Change’ is closed to new replies.