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 …

How To Improve Your WordPress SEO With Permalinks

Wouldn’t it be great if you could just publish a new page on your WordPress website or blog, and the following took place … just from your web address:

  • Site readers could assess what the content is about,
  • Search engines would easily find your pages and correctly classify their content to improve your search rankings,
  • Every post published on your website would have a unique identifier, making things easier to manage.

Well, with WordPress permalinks you can!

How To Set Up And Use WordPress Permalinks

Permalinks – Definition

A permalink is the permanent URL to your individual WordPress posts, categories and other taxonomies (a way to organize things together) like archives.

A permalink is the URL that visitors and search engines use to link to your articles or sections of your site or the links you send in emails pointing to your posts. Permalinks are often called “pretty” URLs.

Permalinks make the web address pointing to each post on your website permanent, hence a permalink.

Permalinks – Why Use Them?

As you are probably aware, WordPress is one of the best CMS applications available when it comes to SEO.

WordPress is not only well optimized straight out of the box, but its SEO aspect can be further enhanced using excellent SEO plugins.

If you are looking to optimize the SEO aspect of your site, then you cannot ignore the importance of your URLs. Search engines like Google place considerable weight on the structure of URLs when indexing its content.

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

Now … let’s review the reason why it’s best to use permalinks in WordPress.

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

Improve Your WordPress SEO With PermalinksThe link structure shown above is used by WordPress to locate information within its database. It doesn’t really mean anything to visitors or search engines, and it doesn’t help your site with on-site search engine optimization.

As you can see from the screenshot below taken directly from Google search listings, many WordPress site owners have not set up their sites to use permalinks …

Using Permalinks To Improve Your WordPress SEO

Although these sites are still getting their content indexed on search engines, they are potentially missing out on additional SEO benefits.

To get maximum SEO benefit from using WordPress and improve your site’s traffic results, 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 lets you create a custom URL structure for your published and archived posts, so your pages can easily go from something that is non-SEO friendly like this …

Using Permalinks To Improve Your WordPress SEO

To something with an SEO-friendly URL like this …

Using Permalinks To Improve Your WordPress SEO

In this tutorial, you will learn how to set up the Permalinks section of your WordPress site to display your posts using SEO-friendly URLs instead of the out-of-the-box linking structure and help every new post you publish get better indexing in search engines.

How To Configure Your WordPress Permalinks

From your WordPress administration menu, select Settings > Permalinks

Using Permalinks To Improve Your WordPress SEO

This will bring up 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 “pretty” permalinks instead for our posts. To do this, we will need to specify a different Permalink structure than the one set by default.

Common Settings – Permalinks

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

Set up your permalink settings to create search engine-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/travel-europe/10-best-european-river-cruises

Instead of this …

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

Using post name permalinks helps search engines and readers understand what the page is about

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

Pretty URL Tags

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

  • %year% – The year of the post, displayed as four digits (e.g. ‘2016’)
  • %monthnum% – The month the post gets published (e.g. ‘03’)
  • %day% – Day of the month (e.g. ‘05’)
  • %hour% – The hour your post gets published (e.g. ‘01’)
  • %minute% – The minute the post gets published (e.g. ‘04’)
  • %second% – The exact second your post is published (e.g. ‘23’)
  • %post_id% – The unique ID # of your post (e.g. ‘4504’)
  • %postname% – A correctly formatted version of the post title. For example, if your post title is ”The Five Don’ts Of DIY Home Repair!”, the postname tag will convert this into “the-five-donts-of-diy-home-repair” (all lower case letters and removed exclamation marks) in the URL. Tip: You can always edit the words in your post titles 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 …

Improve Your WordPress SEO Using Permalinks

Or, use one of the following structures:

Improve Your WordPress SEO With SEO-Friendly URLs

Useful 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 …

How To Configure WordPress Permalinks

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

Optional Permalink Settings

Using Permalinks To Improve Your WordPress SEO

If you need to configure custom structures for your category and tag archive pages here is where you would do this.

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, changing your category base to “travel” would display your category links as ‘http://domain.com/travel/category_name/’.

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

How To Improve Your WordPress SEO Using Permalinks

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

Using Permalinks To Improve Your WordPress SEO

To this …

Using Permalinks To Improve Your WordPress SEO

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

Remember to save your changes when you have finished …

Improve Your WordPress SEO Using Permalinks

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

Use Short, Descriptive Categories

To get the best possible SEO benefit out of 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 plugin developer Joost de Valk, here are a few points to consider if you are wondering whether you should add categories to your permalink structure or not:

  • If your category slug is short and descriptive (e.g. adds a relevant keyword or keyword phrase to your URL), you may want to use the category tag 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 are going to post content under multiple categories, then we recommend not using the category tag in your permalink structure.

Ultimately, when it comes to category vs no category there is no perfect permalink structure to use. Choose the permalink structure that you think will suit your site best. Many SEO experts recommend making your post URLs short enough to be attractive and long enough to be descriptive.

We cover WordPress categories in other tutorials.

Don’t Use Date Permalinks

Another great tip from Joost de Valk is that unless your aim is to run a news blog or there is a special reason why you need to add dates to your URLs, avoid choosing date-based permalink settings for your site’s URLs.

Avoid setting up URL structures that date your posts

(Avoid setting up permalinks that date your content)

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

What If My Site Has Indexed Posts?

Normally, it’s best to set up your site’s permalinks when you install a new WordPress site. This should be part of your website planning process.

Important

If your site is already established or you have a lot of content already indexed in the search engines and you want to change the permalink structure, make sure that this is something that absolutely needs doing, as doing so can create SEO issues and errors.

301 Redirects

As you’ve seen in the above screenshots of actual search results, some WordPress site owners (or their web developers) seem to be unaware of the permalinks feature of WordPress.

Maybe when you started, your site used the default WordPress URL structure and now you want to optimize your site better for search engines. Maybe your website or blog was configured to display post dates in your URLs and now all of your posts are perceived as being outdated and you want to delete the date tags of your URLs.

To edit your URL structure without affecting your site’s SEO in a negative way you will need to use ‘301 redirections’ to point links using the previous URL syntax to post URLs that use the new permalink structure.

Search engines interpret a ’301′ code as a link that has permanently relocated to another address. 301 redirection is the most efficient and search engine friendly way to redirect users to new site destinations and avoid page errors when they click on an old link.

To create an effective syntax change and avoid SEO problems, sending visitors to error pages, etc. you will need to install and set up your redirection system before changing the permalink structure of your site.

You can site or blog using WordPress redirection plugins 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 - WordPress plugin

(Set up URL redirections using a WordPress plugin or get professional help)

Congratulations! Now you know how to configure your blog to display SEO-friendly URLs for your posts and improve your search results. For additional information on using Permalinks, see the WordPress codex here:

http://codex.wordpress.org/Using_Permalinks

***

"This is an awesome training series. I have a pretty good understanding of WordPress already, but this is helping me to move somewhere from intermediate to advanced user!" - Kim Lednum