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 …

Improve Your WordPress SEO With Permalinks

Wouldn’t it be great if you could just publish a new page on your WordPress website, and the following would then take place … all from your page address:

  • Potential visitors could quickly glean what the content is about,
  • Search engines would be able to easily find your pages and correctly classify their content to improve your search results,
  • Every single piece of content you create on your website would have a unique identifier, making your site easier to manage.

Well, this is what permalinks let you do!

How To Set Up And Use WordPress Permalinks

Permalinks – What Are They?

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

A permalink is the URL that people and search engines will use to link to posts 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 URL pointing to each post on your website permanent, hence a permalink.

Why Use Permalinks?

Hopefully, by now you are probably aware that, WordPress is one of the best Content Management Systems available when it comes to publishing search optimized content.

WordPress is not only well optimized straight out of the box, but there are SEO plugins you can install that can easily help to enhance its SEO aspect.

If you are looking to optimize the SEO aspect of your website, then you should not ignore the importance of your URLs. Search engines like Google tend to pay special attention to the structure of URLs when indexing its site pages.

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

Now … let’s take a look at why you should 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 …

Using Permalinks To Improve Your WordPress SEOWordPress uses the above link structure to locate data inside its database. It doesn’t really mean much to anyone, and it doesn’t help your website with on-site search engine optimization.

As the screenshot below shows, many WordPress users haven’t set up their sites to use WordPress permalinks …

Setting Up Your WordPress Permalinks

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

To get more SEO benefit from using WordPress 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 lets you create a custom URL structure for your published posts, so your content can easily go from this …

Improve Your WordPress SEO With Permalinks

To something like this …

Improve Your WordPress SEO With Permalinks

By default, WordPress post URLs are not very search engine-friendly. This tutorial shows you how to set up your WordPress permalinks to help your content rank better in Google.

Changing WordPress Permalinks

Log into your WordPress admin section and select Settings > Permalinks

Configuring Your WordPress Permalinks

This will bring you to the Permalink Settings screen …

Changing 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 “pretty” permalinks instead for our posts. To do this, we 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 …

Change your permalink settings to create search engine-friendly URLs

(Change 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/cruise-holiday-bargains

Instead of this …

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

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

(Using post name permalinks helps search engines and visitors understand what the page is about)

How To Create Permalink Tags In WordPress

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

  • %year% – The year your post is published, displayed as four digits (e.g. ‘2014’)
  • %monthnum% – Month of the year (e.g. ‘10’)
  • %day% – Day of the month (e.g. ‘04’)
  • %hour% – Hour of the day (e.g. ‘04’)
  • %minute% – The minute your post gets published (e.g. ‘09’)
  • %second% – The exact second your post is published (e.g. ‘39’)
  • %post_id% – The unique ID # of your post (e.g. ‘9975’)
  • %postname% – A sanitized version of the post title. For example, if the post title is “Top Five Budget Travel Tips!”, the postname tag will convert this into “top-five-budget-travel-tips” (all characters converted to lower case and exclamation symbol deleted) 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 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 …

Changing WordPress Permalinks

Or, use one of the following structures:

Configuring Your WordPress Permalinks

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 …

Changing Your WordPress Permalinks

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

Permalinks – Optional Settings

Configuring Your WordPress Permalinks

In this section, you can set custom structures for your category and tag archive page URLs.

You can change the ‘base’ category or tag of your URLs using the following structure:

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

For example, using “topics” as your category base will make your category links display as ‘http://domain.com/topics/uncategorized/’.

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

Configuring WordPress Permalinks

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

How To Improve Your WordPress SEO With Permalinks

To something like this …

How To Improve Your WordPress SEO Using Permalinks

If you leave the optional settings fields blank WordPress uses the default settings.

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

Set Up Categories

To get the greatest SEO benefit out of using Permalinks, you will need 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 expert and author of the WordPress SEO plugin Joost de Valk, here are a few points to keep in mind if you are wondering whether you should add categories to your permalinks or not:

  • If your category slug is short and descriptive (e.g. uses a relevant keyword or keyword phrase), 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 share or copy and decrease the SEO benefit.
  • If you plan 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 ”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 cover WordPress categories in another article.

Make Your Posts Timeless

Another useful tip from Joost de Valk is that unless your site is a news site or you have any special reason to date your site’s content, it’s best to avoid choosing date-based permalink syntax for your site’s URLs.

Avoid setting up URL structures that date your content

(Avoid using permalinks that date your posts)

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

What About An Established Site?

Normally, your permalinks should be set up when you create a new WordPress site. This should be part of your website planning process.

Info

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

Use 301 Redirects

As you’ve seen earlier, some WordPress site owners (or whoever set up their site) seem to be unaware of the permalinks feature of WordPress.

Maybe you started out using the default WordPress URL structure and now you want to improve your site’s SEO. Maybe your site was originally set up to display post dates in your URLs and now all of your content is perceived as being out-of-date and you want to remove the date portion in your URLs.

To edit your URL structure without affecting your site’s SEO or rankings in a negative way you should add ‘301 redirections’ to reassign all links that use the previous URL syntax to web URLs that use the new structure.

A ’301′ code is interpreted by search engines as a link that has permanently moved to another destination. 301 redirects are the most efficient and search engine friendly way to redirect visitors to new web page destinations and avoid ‘404’ (Page not found) errors when clicking on an old link.

To create an effective permalink syntax change and avoid damaging your rankings, sending visitors to broken links, etc. you should configure your redirection system before messing with the permalink structure of your site.

You can add a link redirection system to your site using a plugin like Simple 301 Redirects, or Redirection, or use the services of a professional to assist you with setting up and redirecting your permalinks correctly to avoid any issues and troubleshoot any errors.

WordPress redirection plugin Simple 301 Redirects

(Set up link redirections using plugins or get professional assistance)

Congratulations! Now you know about the built-in system WordPress uses to display search engine-friendly URLs for your posts. For additional information on using Permalinks, see the WordPress codex here:

http://codex.wordpress.org/Using_Permalinks

***

"This is AMAZING! I had learnt about how to use WordPress previously, but this covers absolutely everything and more!! Incredible value! Thank you!" - Monique, Warrior Forum

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