Switching the permalink structure from /year/month/post-slug to just /post-slug is easy by going to Settings > Permalinks and choosing “Post name”:
But you don’t want any links to your old URLs to end up generating a 404, negatively affecting SEO. To fix this you’ll want to add in a redirect into your .htaccess file similar to:
1 |
RedirectMatch 301 ^/([0-9]{4})/([0-9]{2})/(.*)$ http://yourwebsite.com/$3 |