How To Redirect Old Permalinks to New Permalinks using .htaccess?
-
Hello,
I need to change the Permalink structure of my wordpress website…
FROM: “/%post_id%-%postname%.html” (example: https://example.com/13659-sample-post.html)
TO: “/%year%/%monthnum%/%day%/%postname%/” (example: https://example.com/2011/05/28/sample-post/)But the problem is, once it’s changed, all the old links indexed on Google, linked by others etc become useless and throw 404 errors.
NO PLUGINS PLEASE. Is there a way to redirect old permalink urls (“/%post_id%-%postname%.html”) to (“/%year%/%monthnum%/%day%/%postname%/”) using .htaccess??
Hope you can help me on this one.
Thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How To Redirect Old Permalinks to New Permalinks using .htaccess?’ is closed to new replies.