Permalinks: Changing to ‘Post name’
A long long time ago somehow when we started our WordPress blog, the year and month was always published in front of the post title, ‘very annoying’ and if you changed the permalinks to what you wanted it broke the site, so up until recently I managed to change them without breaking the site YIPPEE!
I found out about changing the permalink structure in the .htaccess folder instead of just adding 301 link redirecting plugin (Google is good 😉
Anyway the .htaccess way usually means opening your file manager, editing and saving it,but I found another way, quite by accident in the Yoast plugin, that I have already installed so the example below is what the permalinks look like now ‘not annoying’;-)
example: https://www.familyclan.info/giveaways/ i.e.Post name: without the date/month/year in front of giveaways
You can check what your current permalinks are by going into your backend admin settings in WordPress and go to settings – Permalinks (see below).
Common Permalink Settings
Create 301 Redirects
First off you will have to generate your new permalink code (see below)
Once you have generated your 301 redirect code, highlight the text and copy the code code, you need to go back into your permalinks (admin backend in WordPress ,go to settings – Permalinks) and change your permalinks to Post name and press save.
After you have saved to Post name, go to Yoast SEO-Tools-File-editor (see below).
Scroll down till you see the .htaccess file, then all you have to do is paste the code previously copied into the top of the file before # Begin WordPress and job done.
Don’t forget to check everything is working,if not you may not be allowed to use RedirectMatch.
Please call back and leave a comment to let me know how you go on.