How to change permalinks in wordpress

New Page

How do I change the permalink structure?

A permalink, short for ‘permalink’, is the full URL of a page on a Web site. It could include your domain name, plus a slug (the part of the URL that follows the domain name). As I explain in this article on permalinks, it is very important to make sure your permalinks are SEO friendly. But how do you change the permalink structure? That is what we will explore in this article!

Be careful about changing your permalinks if your site has been around for a while. Changing your permalinks if you already have a lot of content can lead to problems like 404 errors.

Related Posts

  • Why you should change your WordPress permalink structure
  • The Perfect WordPress SEO Permalink Structure
  • What is a permalink?
  • What is a slug?

Why you should change your permalink structure

As I explained in this article on how you should change the structure of WordPress permanent liens, we strongly recommend that you use only /%postname%/ for the structure of your site. If you’re using the default permalink configuration ( http://www.example.com/?p=123 ), we’ll display a notice recommending changing the structure.

wpseo_general_dashboard_notifications_permalink-600x95 How to Change the Permalink Structure in WordPress

  1. Launch a session on the WordPress website.

    When you are logged in, you will be in your ‘Dashboard’.

  2. Click on ‘Setup’.

    On the left side, you will see a menu. Dans ce menu, click on ‘Configuration’.

  3. Click on ‘Permanent Enlaces’.

    The ‘Settings’ menu will expand giving you additional options. Cliquez sur ‘Permalinks’.Configuring Permalinks

  4. Select ‘Publication Name’. 

    wordpress-permalink-settings2

  5. Click on ‘Save changes’.
  6. Use this tool to generate the correct code.
  7. Add the code you generated in the previous step to your site’s .htaccess file.

    Not sure how to edit the .htaccess file? We have a “How To” guide available here.

Related Articles

Advanced crawling configuration : cleaning permalinks My sitemap is giving a 404 error, what should I do? Yoast et des serveurs NGINX XML sitemaps

yoast_seo Get Yoast SEO Premium

Be the first to benefit from new features and tools , before everyone else. Get 24/7 support and improve your website’s visibility.

 $99 USD  / an (hors TVA)

Get Yoast SEO Premium »

Read real user reviews

g2_logo_white_rgb star-rating-star star-rating-star star-rating-star star-rating-star half stars4.6 / 5

Change-Permalinks-in-WordPress-1024x536

How to Change Permalinks in WordPress Without Hurting SEO

By jeremy holcombe / WordPress SEO

Compare via:

  • Facebook
  • Gore
  • LinkedIn

A URL is how the online community sees your site. A good URL can sometimes make or break a page. Normally, when you create a new website in WordPress, the default permalinks are not optimal, that’s why most developers change them.

Une autre chose à considérer est de savoir comment modifier les permaliens dans WordPress sans nuire à votre structure globale de référencement.

N’oubliez pas qu’une fois que vous avez publié un article ou une page, l’URL (permalien) est ensuite mise en cache et indexée par Google et d’autres moteurs de recherche. Ainsi, si vous choisissez de modifier l’URL d’une page ou d’un article dans WordPress, cela peut perturber cette indexation.

Changing permalink structure after the fact can be devastating to your website SEO if this is not handled correctly. This is because it can lead to 404 errors.

Let’s dive into this issue and discuss it some. If you need to update your permalinks, then you have come to the right place.

Tabla de contenido ocultar

What is a Permalink?

Are Permalinks Important?

Why Change Permalinks in WordPress?

How to Properly Change Permalinks for Published Content in WordPress

Step 1: Backup Your Website

Step 2: Setup Permanent 301 Redirects

Step 3: Change Your Permalinks

Troubleshooting

Final Thoughts

What is a Permalink?

A permalink is a unique URL (web address) for any webpage on the internet.

Permalinks make it much easier to search, find, and link to specific web pages. This reason alone makes the permalink structure important.

The name actually comes from two words smashed together, “permanent” and “link.” Essentially, you are saying that when a page or post is published, the URL created becomes the “permanent link,” which is one that should never change.

If you really want to break it down even further, a permalink is just the fancy name for a URL that people use to access websites and web pages that they want to find and view. It’s the link people use to click on within text or through images and buttons.

Are Permalinks Important?

Absolutely!

Your permalinks are indeed very important for a number of reasons. First and foremost, they are important for the SEO of your website. Second, they are important for navigation, page identification, and sharing. All of these things are made easier for visitors on your website if you have a good permalink structure in place.

Think of a good permalink structure in this way:

It is like dialing a specific phone extension to get to a specific person when you’re calling a big company. Solid permalinks make this possible on a website.

A bad permalink structure or different permalinks everywhere coming from your site would be like being routed through the main phone number every time.

There are certain instances when you would use a permalink. Of course, when you are building a page or post, you want to make sure the permalink is custom and that it matches what you want.

However, you would also use permalinks in situations like:

  • When linking to a specific post or page.
  • Creating deep links for affiliate marketing purposes.
  • Sharing on social media.

Also, consider how some permalinks have the date a blog post was published. As a result, some people may not visit your content if they deem it to be “too old.” Many online users like content fresh and current.

Why Change Permalinks in WordPress?

If you are about to tackle the process of changing permalinks in WordPress, then there is probably a good reason. More often than not, website owners change their permalinks because they do not like the original structure that was put into place.

Maybe you want to take out the date in your current URL or add tags like categories or other structural settings. You may be changing permalinks because your site is moving, or getting a new domain name. Even changing your protocol from HTTP to HTTPS required you to deal with 301 redirects and permalinks.

Other reasons for doing this include things like:

  • Your old post and page structures are not user-friendly.
  • Maybe your existing permalink structure has no SEO advantages.
  • You are trying to rebrand your website.

Whatever the reason may be, let’s take a look at how to successfully perform a WordPress change of URL and keep your SEO intact.

How to Properly Change Permalinks for Published Content in WordPress

Now that you have a good idea of what permalinks are and how important they can be to your website and SEO, let’s take a look at how to edit a permalink in WordPress without destroying your current links and SEO structure.

So, there are actually a couple of ways to do this. You will need quite a bit of database and cPanel knowledge to perform this all manually. Luckily, that’s not required. Everything can be completed by using the right combination of plugins.

There are three main steps you need to perform in order to change permalinks in WordPress successfully without hurting your SEO.

  1. Backup your website (just in case)
  2. Create Permanent 301 Redirects
  3. Change Your Permalink Structure

Let’s go over these together. I will talk about each step a little and link you to the relevant tutorials that will take you through each process. There are also a couple of other plugin suggestions for you if you are interested.

Step 1: Backup Your Website

Backing up your website is something you should do whenever you are making any sort of big changes. Even though your web host probably makes backups, it is still a good idea to backup your WordPress website yourself. You can do this manually or use a plugin, the choice is yours.

You won’t actually be using the backup for anything in the process, but you will have the files and database in place and ready if something goes terribly wrong while changing your permalinks.

If so, you simply add backup website files and the database into place and you can start from the beginning.

Step 2: Setup Permanent 301 Redirects

Our second step is to set up the Redirection plugin. This allows you to automatically set up 301 redirects to correct 404 error pages when changing the permalink structure.

Ultimately, this step will allow you to change the permalinks structure without breaking links. Thus, it’s the most important step.

Install the Redirection plugin and activate it for use. Upon activation, you should see a message at the top asking you to complete the Redirection setup. Click on the link.

click the link Click on the link

This will give you a quick overview of how the plugin works and what it can do. Click on the “Start Setup” button when you have read the page.

Initial setting Start setup

The basic setup section is the most important because of the first option. It allows the plugin to monitor permalink changes to your website and it will automatically set up the redirects. Thus your website’s links will work without having to make any manual changes.

Check the first checkbox.

check the box Check the box

Select any of the other options you feel are helpful and click on the “Continue Setup” button.

Configuration continue Continue-Configuration

The plugin will now test the connection to the REST API. This is how the plugin communicates with WordPress. You can see the results of the test next to the REST API option.

As long as it says working, you are good to go.

Note: You may also see “Working but some issues” and that is okay. You can check the summary to try and resolve the problems. Check the plugin’s FAQ to find a solution to the issue.

Click on the “Finish Setup” button.

The plugin should automatically set up 301 redirects when we change the permalinks in the next step.

Step 3: Change Your Permalinks

With the Redirection plugin in place, you are ready to change your permalink structure.

WordPress offers a number of different custom permalink options within the WordPress admin dashboard. Thus, you won’t need a plugin for this step. However, it is worth mentioning that there are a variety of plugins available that can do the job as well.

To access the built-in method, click on Settings and select the Permalinks option located on the left-hand admin panel.

Click settings and then click permalinks Click on settings then on permalinks

This will take you to the custom permalink setup that WordPress offers. From here, you can adjust and set your website permalinks to exactly what you want them to show.

Change permanent link on WordPress Edit permalinks in WordPress

Unfortunately, WordPress does not pick an SEO-friendly permalink structure by default. And if you didn’t catch it early enough, it could be a major factor in why your website is not ranking well.

There are multiple structures to choose from and you even have the option to create your own custom permalink structure. But, if you’re looking for the best, which I know you are, Yoast SEO recommends using a custom structure of “/%category%/%postname%/” but the choice is up to you.

Once you have changed the permalink structure, click on the “Save Changes” button. This will force WordPress to update the permalinks structure of your website.

Garder changes to change permalinks in WordPress Save Changes to Edit Permalinks in WordPress

El complemento de redirección ahora debería crear redirecciones para todas sus páginas. Si aún tiene problemas, consulte la sección de solución de problemas a continuación.

Felicitaciones por cambiar su estructura de enlaces permanentes, sin dañar el SEO de su sitio web.

Advertencia: cambiar la configuración de los enlaces permanentes puede afectar seriamente la visibilidad de su motor de búsqueda. Casi  nunca  debe hacerse en un sitio web en vivo. Si es así, considere enviar un nuevo mapa del sitio a Google lo antes posible.

Solución de problemas

Si el complemento de redirección no ha configurado automáticamente las redirecciones, entonces tendrá que hacer un ajuste.

Esto significa que debe configurar una redirección manual. Desafortunadamente, el texto exacto de la redirección depende de la estructura de enlaces permanentes de la que proviene y a qué estructura de enlaces permanentes se dirige.

Por lo tanto, el código exacto será diferente para todos.

Fortunately, Redirect has an excellent guide on how to create pattern-based redirects, which is exactly what a permalink structure change is.

For example, if you were changing from a later date/title permalink structure to a later /name structure, the source URL would be ” ^/(\d*)/(\d*)/(\d*) /( [A-Za-z0-9-]*) ” and the destination URL would be “ /$4 “:

Redirection Add Add a redirect

Note: Even if you were making this exact change, the above redirect might not work correctly depending on what type of date you had before. After all, there are numerous ways to display the date in URLs.

However, you probably need a different redirect.

However, it is necessary to use the guide of expressions of the complement of redirection to discover cómo hacer esto para su caso específico.

Final Thoughts

As long as you follow the above steps as given, you should be able to successfully change permalinks in WordPress and keep all of your SEO structure and rankings intact.

This isn’t something you need to do often, so make sure you’re happy with your new permalink structure.

Did this process work for you? What other tools or plugins did you use? Do you prefer to complete the whole process manually?

Sharing via:

  • Facebook
  • Twitter
  • LinkedIn

Google Google translator

Google Google Translate


Video How to change permalinks in wordpress

Related Posts

How to add seo keywords in wordpress

Contents1 Cómo agregar palabras clave de SEO en WordPress (aumentar el CTR y las clasificaciones)1.1 Post Title1.2 Headline1.3 Header Tags1.4 Introduction and Conclusion1.5 Body Copy1.6 URL1.7 Meta…

How to embed google calendar into wordpress

Contents1 How to Add a Google Calendar in WordPress (Step by Step)2 Add a Google calendar to your website3 calendario de Google3.1 Versatile plans and pricing4 Video…

How to change the logo in wordpress

Contents1 How to Add a Custom Logo to Your Site Header2 Site Logo2.1 Planes y precios versátiles3 Add, remove or edit a custom logo4 Video How to…

How to add a popup on wordpress

Contents1 Easily create a WordPress emergent form (2 forms)1.1 ¿Por qué usar un formulario emergente de WordPress?1.2 Método #1: Crear un formulario emergente con OptinMonster + WPForms1.3…

How to roll back wordpress version

Contents1 How to Revert WordPress: Undo WordPress Updates (Easy Way)2 How to Downgrade WordPress & Roll Back to a Previous Version2.1 1. A WordPress update included significant changes…

How to rollback wordpress version

Contents1 How to Downgrade WordPress and Revert to an Older Version1.1 1. A WordPress update included significant changes that are not compatible with your theme or plugins1.2…