How To Set Up And Use WordPress Permalinks

Learn how to set up permalinks in WordPress for improved content navigation and better search engine optimization …

Setting Up WordPress Permalinks

Wouldn’t it be great if you could add a new page to your site, and the following happened … all from your post URL:

  • Site visitors could glean what your post is about,
  • Google could discover your pages faster,
  • Every single content item created on your site would have its own unique ID, making things easier to manage.

Well, with permalinks this is really easy to do!

How To Set Up And Use WordPress Permalinks

Permalink – What Is It?

A permalink is the permanent URL to an individual post, category, or other taxonomy (a way to organize things together) like archives.

A permalink is the web address that other people use to link to articles or sections of your site or the links you send in emails pointing to your posts. Some people refer to permalinks as “pretty” URLs.

Permalinks make the URL pointing to each post on your blog permanent, hence a permalink.

Permalinks – Why Do You Need To Use Them?

As you have probably heard by now, WordPress is one of the best CMS applications available when it comes to SEO.

WordPress is not only great for SEO out of the box, but the SEO aspect can be easily finetuned using SEO plugins.

If you are looking to optimize the SEO aspect of your site or blog, then you cannot ignore the importance of its site’s URLs. Google tends to give special consideration to the URL structure of your site.

Permalinks can be used to turn links on your site into “prettier” and more “search engine friendly” URLs. Permalinks can also improve the aesthetics, usability, and forward-compatibility of your links.

Now … let’s see why it’s best to configure your permalinks in WordPress.

By default, a WordPress installation uses a non-search engine friendly URL-naming structure for your posts that looks like this …

How To Improve Your WordPress SEO With PermalinksWordPress uses the link structure with a string query shown above to find data inside your database. It doesn’t really mean much to anyone, and it doesn’t help your website with on-site search engine optimization.

As you can see from the screenshot image below taken from Google search listings, many WordPress users have not yet configured their sites to publish search optimized content online …

Improve Your WordPress SEO With Permalinks

Although Google is still indexing the above sites, these site owners are potentially missing out on additional SEO benefits.

To get maximum SEO benefit out of using and improve your site’s rankings, you should set up your permalinks structure to make it more search engine-friendly by displaying relevant keywords in your URL, instead of meaningless characters.

WordPress offers the ability to create a custom URL structure for your published and archived posts, so your pages can go from something that is non-SEO friendly like this …

Changing WordPress Permalinks

To something with an SEO-friendly URL like this …

Setting Up WordPress Permalinks

By default, WordPress post URLs are not very search engine-friendly. This step-by-step tutorial shows you how to configure your permalinks in WordPress to display posts using search engine-friendly URLs.

How To Set Up Your WordPress Permalinks

In your WordPress admin click on, Settings > Permalinks

How To Improve Your WordPress SEO Using Permalinks

This will bring you to the Permalink Settings screen …

Using Permalinks To Improve Your WordPress SEO

As mentioned earlier, by default WordPress web URLs use characters like question marks and numbers to create unique Post Ids and URLs. We want to create a “pretty” permalink instead for our posts. To do this, we will need to specify a different Permalink structure than the default one.

Common Permalink Settings

In the Common Settings section, select Custom Structure, then add one or more ‘tags’ (see below) to create search engine-friendly URLs …

Configure your permalink settings to create SEO-friendly URLs

(Configure your permalink settings to create search engine-friendly URLs)

If you use the custom permalink structure shown in the example above, your URL would look something like this:

http://www.mytravelsite.com/cruise-travel/how-to-save-money-on-cruise-travel

Instead of this …

http://www.mytravelsite.com/?p=4849

Using permalinks helps search engines and visitors understand what your post is about

(Using post name permalinks helps readers and search engines understand what your post is about)

WordPress Permalink Tags

“Pretty” URLs, or SEO-friendly URLs, are created by adding one or more ‘tags’ in the Custom Structure field:

  • %year% – The year the post gets published, displayed as four digits (e.g. ‘2018’)
  • %monthnum% – Month of the year (e.g. ‘05’)
  • %day% – The day the post is published (e.g. ‘06’)
  • %hour% – The hour the post gets published (e.g. ‘22’)
  • %minute% – Minute of the hour (e.g. ‘46’)
  • %second% – Second of the minute (e.g. ‘37’)
  • %post_id% – The unique ID # of your post (e.g. ‘1005’)
  • %postname% – A sanitized version of the post title. For example, if your post title is ”Ten Signs That You’re About To Get Fired From Your Job!”, the postname tag will convert this into “ten-signs-that-youre-about-to-get-fired-from-your-job” (all characters converted to lower case and punctuation symbols removed) in the URL. Tip: You can always edit the wording in your post title in the post slug field on the Add/Edit Post/Page screens.
  • %category% – A correctly formatted version of the category name. Nested sub-categories appear as nested directories in the URI (Uniform Resource Identifier – the string of characters used in the URL). Tip: You can edit this text in the category slug field in the New/Edit Category screens.
  • %author% – A correctly formatted version of the author name.

Note: When using multiple tags, separate each tag using a ‘/’ (forward slash), or hyphen.

For a quick setup, choose the Custom Structure option, and enter the code below into the ‘Custom Structure’ field …

Configuring WordPress Permalinks

Or, use one of the following structures:

Using Permalinks To Improve Your WordPress SEO

Practical Tip

Tip: If you want search engine friendly URLs for your posts, but don’t want to use a custom permalink structure using tags, then choose Common Settings > Post name instead …

Using Permalinks To Improve Your WordPress SEO

Choosing ‘Post name’ is the same as adding the /%postname%/ tag in ‘Custom Structure’.

Permalinks – Optional Settings

Using Permalinks To Improve Your WordPress SEO

In this section, you can enter custom structures for your category and tag URLs.

This changes the ‘base’ tag or category for your URLs using the following syntax:

  • domain.com/category_base/category_name
  • domain.com/tag_base/tag_name

For example, using “travel” as your category base would display your category links as ‘http://domain.com/travel/category_name/’.

So, if you enter the following in your permalinks Optional > Category base settings field …

How To Improve Your WordPress SEO With Permalinks

Your ‘category archives’ page URL will change from this …

Setting Up Your WordPress Permalinks

To something like this …

Using Permalinks To Improve Your WordPress SEO

If you leave the fields blank the defaults will be used.

Remember to save any changes when you have finished …

Using Permalinks To Improve Your WordPress SEO

Permalinks – Useful Tips

Sometimes, when you are creating a new post and haven’t given the content a post title yet, the WordPress Autosave feature will save your draft with an assigned numerical permalink (see the example URL in the screenshot below)  …

To fix this and give the post its proper permalink, go to ‘Edit Post’ …

Click on the ‘Edit’ button in the post slug section …

Select all content in the post slug field and delete it …

Click ‘OK’ …

The post slug entry will be replaced with the correct permalink based on your post title …

Here is a quick recap of the process …

Remember to update your post to save the changes …

Your permalink should now reflect the new post title …

Note also that when you change the URL of a published post, you should also create a redirect link

If you change your post title at a later date (e.g. you think of a more compelling post title or use a headline generator tool to help you come up with some killer post titles), remember to fix the permalink to match the new post title and add a redirection to the new post URL …

Make sure that your permalinks match the titles of your posts and pages to help site visitors find what they are looking for and ensure that search engines will better index your content …

Permalinks – Tips

Set Up Categories

To get maximum benefit from using Permalinks, remember to set up your WordPress Categories correctly. If you do not have any categories set up, WordPress will use the default category (uncategorized).

According to WordPress SEO expert and author of the WordPress SEO plugin Joost de Valk, here are some points to keep in mind if you are wondering whether or not to add categories to your permalinks:

  • If your category is short and descriptive (e.g. adds a relevant keyword or keyword phrase to your URL), you may want to use categories in your permalink.
  • If your post slug (the part of your URL that identifies your post) is too long, it can make your post URL harder to copy and reduce the SEO benefit.
  • Do you plan to post content under only one category or multiple categories? If you plan to post content under multiple categories, then it’s recommended that you do not use the category tag in your permalink structure.

Ultimately, when it comes to category vs no category there is no ”better” permalink structure to use. We recommend choosing the permalink structure you think will suit your site best and that will make your post URLs short enough to be attractive and long enough to be descriptive.

We provide detailed information about WordPress categories in another article.

Create Timeless Posts

Another useful tip from Joost de Valk is that unless your site provides news, or there is a special reason why you need to add dates to your post URLs, avoid choosing date-based permalink settings when setting up your blog’s URLs.

Avoid setting up permalinks that date your content

(Avoid setting up URL structures that time-stamp your content)

People are less likely to click on a post if it is several years old, even if the content is relevant to the answers they are searching for.

What If My Site Already Has Lots Of Content?

Normally, it’s best to configure your permalinks when you first install WordPress. This should be part of your site planning process.

Disclaimer

If your website has been running for a while or your site already has a lot of content indexed in the search engines and you would like to change the permalink structure, make sure that this is something that absolutely needs doing, as changing permalinks after your site has already been going for a while can create issues and loss of traffic.

301 Redirects

As you’ve seen earlier, some WordPress site owners (or whoever set up their site) are unaware of the search-friendly URLs feature of WordPress.

Maybe when you started out, your site used the default WordPress permalinks and now you would like to optimize your site better for search engines. Perhaps your site was originally set up to display post dates in your URLs and now all of your content is showing as being 2-3 years old and you want to delete the date portion of your URLs.

The best way to edit your URL structure without negatively affecting your site’s SEO is to add ‘301 redirects’ to point links set up using the previous permalinks syntax to destinations that use the new permalinks structure.

A code ‘301’ is interpreted by search engines as a link that has permanently moved to another location. 301 redirects are the most efficient and search engine friendly way to redirect visitors to new website destinations and avoid running into page errors when they click on an old link.

To create an effective permalink structure change and avoid SEO problems, sending visitors to broken links, etc. you should set up a redirection system before changing the permalink structure of your site.

You can site using a redirection plugin like Simple 301 Redirects, or Redirection, or get a professional to help you set up and redirect your permalinks correctly to avoid problems and troubleshoot any errors.

Simple 301 Redirects - WP redirection plugin

(Set up 301 redirects using a WP redirection plugin or use the services of a professional)

Congratulations! Now you know about the built-in system WordPress uses to display search engine-friendly URLs for your posts. To learn more about using Permalinks, see the WordPress codex below:

http://codex.wordpress.org/Using_Permalinks

***

"These tutorials have so much information and are easy to understand. If you use WordPress or plan to in the future these will help you with everything you need to know." - Valisa (Mesa, Arizona)