How to change the permalink structure

A permalink – short for permanent link – is the full URL for a page on a website. It could include your domain name, plus a slug: the part of the URL that follows the domain name. As we explain in our article on what a permalink is, it’s very important to make sure they are SEO-friendly. So, how do you change the what is included in your permalinks? In this article, we’ll explain you how to change the permalink structure.

As we explain in our article on why you should change your WordPress permalink structure, we highly recommend you use just /%postname%/ for your site structure.

When you use the default permalink setting, which looks like http://www.example.com/?p=123, we will display a notice that recommends changing the structure.

Has you site existed for a while? In that case, we recommend that you are careful with changing your permalink structure. If you already have a lot of content, it can lead to issues such as 404 errors.

  1. Log in to your WordPress website.

    When you’re logged in, you will be in your Dashboard.

  2. Under Settings, go to Permalinks

    In the menu on the left, click on Settings. You will be able to open the Permalinks section

  3. In the Permalink structure section, select Post Name


  4. At the bottom of the page, click on Save changes

    You have now changed your permalink structure.

  5. Use the Yoast Create Redirects tool to create code that redirects your content


  6. Add the generated code to your site’s .htaccess file

    Not sure where to find the .htaccess file and how to edit it? Follow our step-by-step instruction on How to edit .htaccess through Yoast SEO.

Did this article answer your question?

Thanks for your feedback!

Related articles

Get free SEO tips!