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 …

Changing Your WordPress Permalinks

Wouldn’t it be great if after publishing new content on your WordPress website or blog, the following took place … just from your page URL:

  • Site readers could gain an understanding of what your page is about,
  • Search engines could find your posts faster,
  • Every piece of content created on your site would have a unique identifier, making your site easier to manage.

Well, with permalinks this is really easy to do!

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 group things together) like archives.

A permalink is the web address that others use to link to articles or sections of your site or the links you send in an email pointing readers to articles on your site. Some people also call permalinks “pretty” URLs.

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

Permalinks – Why Use Them?

Hopefully, you are probably aware by now that, WordPress is one of the best Content Management Systems 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 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. Search engines like Google tend to give special consideration to the structure of URLs when indexing its pages.

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

Now … let’s see why you may need to configure your permalinks when publishing content in WordPress.

Typically, a default WordPress installation uses a link-naming structure for your posts that isn’t search engine friendly and looks like this …

Improve Your WordPress SEO With SEO-Friendly URLsThe above link structure is used by WordPress to locate data inside its database. It doesn’t really help your site with on-site search engine optimization.

As the screenshot taken from Google search results below shows, many WordPress users haven’t yet configured their permalinks …

Using Permalinks To Improve Your WordPress SEO

Although these sites are getting their content indexed on search engines, the owners of these sites are potentially missing out on extra SEO benefits.

To get the most SEO benefit from using WordPress and improve your site’s traffic results, you should set up your permalinks structure to make it more SEO-friendly by displaying relevant keywords in your URL, instead of meaningless characters.

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

Improve Your WordPress SEO With Permalinks

To this …

Using Permalinks To Improve Your WordPress SEO

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

Changing WordPress Permalinks

In your WordPress dashboard area click on, Settings > Permalinks

How To Improve Your WordPress SEO With Permalinks

This will bring you to the Permalink Settings screen …

How To Configure 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 need to specify a different Permalink structure than the default one.

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 …

Change your permalink settings to create search engine-friendly URLs

(Set up your permalink settings to create SEO-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/europe-travel/romantic-cruise-holiday-bargains

Instead of this …

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

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

(Using permalinks helps visitors and search engines understand what your content is about)

Search Engine-Friendly Tags

“Pretty” URLs, or search engine-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 your post is published (e.g. ‘11’)
  • %day% – The day the post gets published (e.g. ‘17’)
  • %hour% – Hour of the day (e.g. ‘10’)
  • %minute% – Minute of the hour (e.g. ‘08’)
  • %second% – The exact second your post is published (e.g. ‘53’)
  • %post_id% – The unique ID # of your post (e.g. ‘8856’)
  • %postname% – A correctly formatted version of the post title. For example, if your post title is ”Ten Best Hotels In Cote D’Azur!”, the postname tag will convert this into “ten-best-hotels-in-cote-dazur” (all lower case characters and punctuation marks removed) in the URL. Tip: You can edit the words 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 …

Using Permalinks To Improve Your WordPress SEO

Or, use one of the following structures:

How To Configure 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 …

Using Permalinks To Improve Your WordPress SEO

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

Optional Permalink Settings

How To Improve Your WordPress SEO With Permalinks

If you need to configure custom permalinks for your category and tag URLs here is where you would do this.

This changes the ‘base’ category or tag 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” will make your category links display 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 Using SEO-Friendly URLs

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

Using Permalinks To Improve Your WordPress SEO

To this …

Configuring Your WordPress Permalinks

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

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

Categories

To get greater benefit from using Permalinks, remember to set up your WordPress Categories correctly. If you do not have any categories set up, adding a category tag to your permalink forces WordPress to use the default category (uncategorized).

According to WordPress SEO plugin developer Joost de Valk, here are a few things to keep in mind if you are wondering whether you should add categories to your permalinks or not:

  • If your category name 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 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 category vs no category there really is no ideal permalink structure to use. Use a permalink structure you think will suit your needs best. Your web addresses should be short enough to be attractive and long enough to be descriptive.

We cover WordPress categories in another article.

Avoid Date-Based Permalinks

Another great tip from Joost de Valk is that unless your site provides news, or you have any special reason to date your site’s content, avoid selecting date-based permalink options for your URLs.

Avoid using permalinks that time-stamp your content

(Avoid using permalinks that date your content)

Although using URL structures that date your content may be considered better that using no permalinks at all from an SEO perspective, visitors are less likely to click on posts that are a couple of years old, even if the content is relevant to the answers they are searching for.

Changing Permalinks In An Established Site

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

Warning

If your site has been running for a while or your site already has many posts 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 could create issues and loss of traffic.

Add 301 Redirects

As you’ve seen earlier, many WordPress users (or their web developers) are completely unaware of the search-friendly URLs feature of WordPress.

Maybe you started out using the default WordPress permalinks and now you want to optimize your site better for search engines. Maybe your site was configured to display post dates in your web address and now all of your posts are showing as being old and you want to remove the date tags in the permalinks.

To modify your permalink structure without negatively affecting your site’s SEO you will need to use ‘301 redirections’ to point all links using the old permalink structure to destinations that use the new structure.

Search engines interpret a code ‘301’ as a link that has permanently relocated to another address. 301 redirection is the most effective and search engine friendly way to redirect visitors to new site destinations and avoid running into ”page not found” errors if they click on an old link.

To effectively change your syntax and avoid damaging your search rankings, sending visitors to error pages, etc. you will need to configure a redirection system before messing with the permalink structure of your site.

You can WP site 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 issues and troubleshoot any errors.

Simple 301 Redirects - WP redirection plugin

(Set up URL redirections using plugins 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 search rankings. To learn more about using Permalinks, refer to the official WordPress documentation here:

http://codex.wordpress.org/Using_Permalinks

***

"I was absolutely amazed at the scope and breadth of these tutorials! The most in-depth training I have ever received on any subject!" - Myke O'Neill, DailyGreenPost.com

Originally published as How To Set Up And Use WordPress Permalinks.