Permalinks in WordPress

Banner for tutorial on how to manage permalinks in WordPress

In WordPress, permalinks (permanent hyperlinks) are the full URLs to individual pages and posts, including category, tag and other archives.

You can use permalinks to improve user experience and to level up search engine optimization (SEO) of your site.

In this article, you will learn ways how to configure and optimize permalinks in a WordPress site.

Permalinks structure

A permalink consists of two parts:

  1. Domain name. For example, themesharbor.com.
  2. Slug. For example, about-us.

The slug is unique to each web page. It might include a category or an author name or any other information that describes the content the site visitor will find on the web page.

This is an example of a full permalink:

https://themesharbor.com/about-us/

Use SEO-friendly permalinks

Pretty permalinks are vital for search engine optimization.

By default, WordPress displays plain permalink, other word is ugly permalink, when you visit a web page.

This is not good for search engines because this structure is not SEO-friendly.

To enable SEO-friendly permalinks and boost web traffic:

  1. In dashboard, navigate to Settings → Permalinks.
  2. Select permalink structure.
  3. Save Changes.
Preview of SEO-friendly structure for permalinks in the Permalinks Settings page.

Now you have pretty permalinks in your WordPress site.

By the way, to improve search engine rankings of your WordPress site even further, you can also optimize images.

Update permalink structure

You can update permalink structure in WordPress anytime you need it.

To update permalink structure:

  1. Open Settings → Permalinks Screen.
  2. Under Common Settings, set your structure.
  3. Save Changes when ready.
Preview of the Permalinks Settings in WordPress dashboard, showing all available options for permalink structure.

WordPress offers several options to set permalink structure. For URL simplicity, use Post name option.

Change Page (or Post) URL

Since there might be a need to change a page URL, WordPress comes with a simple tool to update the URL of a web page.

To make a change in URL:

  1. Open your page in the editor.
  2. Locate and open the Permalink section in the sidebar.
  3. Add your new slug under URL slug. The “slug” is a name for a webpage in the URL appended to your domain.
  4. Click the Update button to save your change.
Preview of the Block editor screen, with an option to change the URL (slug) of the page.

This method also works for posts and other post types.

However, read the next section to better understand SEO implications before making URLs changes.

SEO implications

It is important to pick your permalink wisely and to avoid frequent changes of permalink structure or slug.

When you make the change, the old link becomes unavailable. If someone clicks on that old link, they’ll be taken to a 404 page.

As a result, can lead to negative experience for site visitors.

Furthermore, Google, or any other search engine, will have to remove your web page once the URL changes, and it could take some time before it re-ranks the new page in its place.

Conclusion

A simple permalink is always a good choice of making a URL easy to understand and share.

Well-defined permalinks provide clues to site visitors and search engines. As a result, it positively affects user experience and SEO of your WordPress site.

Hopefully, this tutorial was useful for you to learn how to work with permalinks in WordPress.

Feel free to share your experience working with WordPress permalinks in the comments below.

Leave a Reply

Your email address will not be published.

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