Fix WordPress Permalinks within Yoast

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:   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

Permalinks WordPress Common Settings Family Clan Blog

Create 301 Redirects

First off you will have to generate your new permalink code (see below)

Yeost-301-Permalink-redirects Family Clan Blog

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).

Yoast tools File editor Family Clan Blog

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.

wordpress.htaccess-file Family Clan Blog










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.

Grandad Al

One Thought to “Fix WordPress Permalinks within Yoast”

  1. Margaret Gallagher

    Will read this proper later – seem to get this often – thanks

Make sure you leave us a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.