
Changing Permalink structure in Wordpress
- SEO |
Question #2: If I change the permalink structure to only have the post title in the URL, I know I will get 404 errors if someone happens to go to that page. If I use the following code in the sites .htaccess file, which basically redirects all of the old links with the date in the URL to the new links that do not have the date in the URL but only the post name...
Will that cause issues with my SEO.. here's the code I generated from Yoast:
RedirectMatch 301 ^/([0-9]{4})/([0-9]{2})/(?!page/)(.+)$
https://yourwebsite.com/$3
I realize this is an off the wall questions but want to hear from someone with experience with these types of issues before I make the change. I've tested the code on a test side and it seems to work perfectly. I just don't want to give Google any excuse to slap a penalty on the domain.
Thanks in Advance for any help you can offer.
Web Design & SEO Agency | Serving World Wide from New Delhi, India