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 Using SEO-Friendly URLs

Wouldn’t it be great if you could just add content to your WordPress website, and the following would then happen … just from your post URL:

  • Users could quickly tell what your page was about,
  • Search engines could easily find your page and correctly classify its content to improve your search rankings,
  • Every single piece of content created on your website would have its own unique ID, making your content easier to manage.

Well, with permalinks this is really easy to do!

How To Set Up And Use WordPress Permalinks

What Are Permalinks?

Permalinks are the permanent URLs to your individual posts, categories and other taxonomies (a way to group things together) like archives.

A permalink is the web address that other people use to link to posts or sections of your site or the links you send in emails pointing to a specific post on your site. Permalinks are also referred to as “pretty” URLs.

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

Why Do You Need To Use Permalinks?

As you have probably heard by now, WordPress is one of the best CMS applications available when it comes to publishing search engines optimized content.

WordPress is not only great for SEO out of the box, but its SEO aspect can be further finetuned with excellent SEO plugins.

If you focus on the SEO aspect of your site or blog, then you should not ignore the importance of your site’s URLs. Google tends to pay special attention to the structure of your site’s URLs when indexing pages.

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

Now … let’s take a look at the reason why you should use permalinks if publishing content in WordPress.

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

Improve Your WordPress SEO With SEO-Friendly URLsThe above link structure is used by WordPress to find data inside your database. It does not mean much to anyone, and it doesn’t help your website with on-site SEO.

As you can see from the image below, many WordPress users haven’t yet configured their sites to publish search optimized content online …

How To Improve Your WordPress SEO Using SEO-Friendly URLs

Although these sites are getting their content indexed on search engines, many site owners are missing out on additional SEO benefits.

To get the most SEO benefit from using and improve your site’s traffic results, you will want to make sure to configure your permalinks structure to make it more SEO-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 this …

Using Permalinks To Improve Your WordPress SEO

To something like this …

Setting Up WordPress Permalinks

In this tutorial, you will learn how to set up your WordPress permalinks 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 results in Google.

Changing Your WordPress Permalinks

In your WordPress admin select, Settings > Permalinks

Improve Your WordPress SEO Using Permalinks

This will bring up the Permalink Settings screen …

Setting Up Your WordPress Permalinks

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 search engine friendly URLs instead for our posts. To do this, we will need to specify a different Permalink structure than the one set by default.

Permalinks - Common Settings

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

Set up your permalink settings to create SEO-friendly URLs

(Set up 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-tips/how-to-save-money-on-cruise-travel

Instead of this …

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

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

(Using permalinks helps readers understand what the content is about)

Creating SEO-Friendly 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. ‘04’)
  • %day% – Day of the month (e.g. ‘23’)
  • %hour% – The hour the post gets published (e.g. ‘05’)
  • %minute% – The minute your post gets published (e.g. ‘36’)
  • %second% – The exact second the post gets published (e.g. ‘36’)
  • %post_id% – The unique ID # of the post (e.g. ‘7311’)
  • %postname% – A sanitized version of the post title. For example, if the post title is ”It Ain’t Worth Doin’ No More!”, the postname tag will convert this into “it-aint-worth-doin-no-more” (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 sanitized 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 sanitized 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 …

Setting Up Your WordPress Permalinks

Or, use one of the following structures:

Configuring Your WordPress Permalinks

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 …

How To Improve Your WordPress SEO With Permalinks

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

Permalinks – Optional Settings

Using Permalinks To Improve Your WordPress SEO

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

This changes the ‘base’ category or tag URLs using the following structure:

  • 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/uncategorized/’.

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

Configuring Your WordPress Permalinks

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

How To Change WordPress Permalinks

To this …

Changing WordPress Permalinks

If you leave these fields blank the default settings will be used.

Remember to save your changes when 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

Use Short, Descriptive Categories

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

  • If your category is short and descriptive (e.g. uses a relevant keyword or keyword phrase), 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 decrease the SEO benefit.
  • If you are going 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 adding category vs no category there really is no ideal permalink structure to use. Choose a permalink structure you think will suit your site best. Your post URLs should be short enough to be attractive and long enough to be descriptive.

We provide detailed information about WordPress categories in another tutorial.

Create Timeless Posts

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

Avoid using permalinks that time-stamp your content

(Avoid using permalinks that date your posts)

Although using permalinks that time-stamp your content may be considered better that using no permalinks at all from an SEO aspect, people are less likely to click on a post that is a couple of years old, even if the content is relevant to what they are searching for.

What About Changing Permalinks In An Established Site?

Normally, your permalinks should be set up when you first install WordPress. This should be part of your website planning process.

Useful Information

If your website or blog 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 changing permalinks after your site has already been up and running for a while could create issues and loss of traffic.

Add 301 Redirection

As you’ve seen in the above screenshots of actual search results, some WordPress site owners (or their web developers) are unaware of the SEO-friendly URLs feature of WordPress.

Maybe you started out using the default WordPress permalinks and now you want to improve your site’s SEO. Perhaps your website or blog was configured to display post dates in your web address and now all of your content is perceived as being out-of-date and you want to delete the date tags of the URLs.

To modify your URL structure without negatively affecting your site’s SEO or rankings you will need to use ‘301 redirects’ to reassign all links set up using the previous URL syntax to web addresses that use the new permalinks syntax.

Search engines interpret a ’301′ code as a link that has permanently moved. 301 redirection is the most efficient and search engine friendly way to redirect visitors to new website destinations and avoid page errors if following an old link.

To effectively change your permalink structure and avoid SEO problems, sending visitors to error pages, etc. you will need to install and set up a redirection system before messing with the permalink structure of your site.

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

WP plugin Simple 301 Redirects

(Set up 301 redirects using a WordPress plugin or get professional help)

Congratulations! Now you know about the built-in system WordPress uses to display SEO-friendly URLs for your posts and improve your search results. For additional information on using Permalinks, see the official WordPress documentation below:

http://codex.wordpress.org/Using_Permalinks

***

"I love the way your email series "Infinite Web Content Creation Training Series" is documented and presented. It is very absorbing and captivating. The links and tutorials are interesting and educational. This has motivated me to rewrite my content following the concepts I am learning from the email series." - Mani Raju, www.fortuneinewaste.com