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 …

Configuring WordPress Permalinks

Wouldn’t it be great if after adding new content to your website or blog, the following could happen … all from your page URL:

  • Visitors could easily gain an understanding of what the content was about,
  • Search engines could easily discover your posts and correctly index their content to improve your search rankings,
  • Each content item added to your site would have a unique ID, making your content easier to manage.

Well, with permalinks you can easily do this!

How To Set Up And Use WordPress Permalinks

What Are Permalinks?

Permalinks are the permanent URLs to an individual WordPress post, category, or other taxonomy (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 emails pointing to a particular item of content on your blog. 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?

As you have probably heard by now, 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 the SEO aspect can be further enhanced with SEO plugins.

If you are looking to optimize the SEO aspect of your site or blog, then you should not ignore the importance of its site’s URLs. Search engines like Google tend to pay special attention to the URL structure of your site.

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

Now … let’s review why you may need to configure your permalinks in WordPress.

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

Using Permalinks To Improve Your WordPress SEOThe link structure shown above is used by WordPress to find data within its database. It doesn’t really help your website with on-site search engine optimization.

As the screenshot image taken from Google search listings below shows, many WordPress users haven’t yet set up their sites to use WordPress permalinks …

Setting Up WordPress Permalinks

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

To get the maximum SEO benefit out of using WordPress and improve your site’s traffic results, you will want to make sure to configure 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 content can easily go from this …

Improve Your WordPress SEO With Permalinks

To something like this …

Configuring WordPress Permalinks

In this step-by-step tutorial, you will learn how to configure the Permalinks section of your WordPress site to display posts using SEO-friendly URLs instead of the default URL structure and help every new post you add to your site or blog automatically get better indexing in search engines.

Setting Up WordPress Permalinks

In your WordPress admin select, Settings > Permalinks

Using Permalinks To Improve Your WordPress SEO

This brings up the Permalink Settings screen …

Improve Your WordPress SEO With SEO-Friendly URLs

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 default one.

Common Settings

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 SEO-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/travel-europe/river-cruise-holiday-bargains

Instead of this …

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

Using post name permalinks helps visitors understand what your post is about

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

Adding Pretty URL Tags In Custom Structure

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

  • %year% – The year the post is published, four digits (e.g. ‘2016’)
  • %monthnum% – Month of the year (e.g. ‘07’)
  • %day% – The day your post gets published (e.g. ‘29’)
  • %hour% – Hour of the day (e.g. ‘19’)
  • %minute% – The minute the post gets published (e.g. ‘08’)
  • %second% – The exact second the post gets published (e.g. ‘60’)
  • %post_id% – The unique ID # of the post (e.g. ‘3264’)
  • %postname% – A sanitized version of your post title. For example, if your post title is “Top Five Budget Travel Tips!”, the postname tag will convert this into “top-five-budget-travel-tips” (all lower case letters and removed punctuation mark) in the URL. Tip: You can always edit the URL text 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 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 …

Using Permalinks To Improve Your WordPress SEO

Or, use one of the following structures:

Improve Your WordPress SEO With 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 …

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

This section lets you configure custom structures for your tag and category archive pages.

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

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

For example, changing your category base to “news” would make your category links display as ‘http://domain.com/news/category_name/’.

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

Using Permalinks To Improve Your WordPress SEO

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

Using Permalinks To Improve Your WordPress SEO

To something like this …

Changing WordPress Permalinks

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

Remember to save your changes when done …

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 Your Categories

To get the most 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 expert Joost de Valk, here are a few points to keep in mind if you are wondering whether or not to add categories to your permalinks:

  • If your category name is short and descriptive (e.g. adds a relevant keyword or keyword phrase to your URL), you may want to add the category tag to 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 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 using category vs no category there is no perfect permalink structure to use. Use the permalink structure you think will suit your needs best. SEO experts recommend making your post URLs short enough to be attractive and long enough to be descriptive.

We cover WordPress categories in another tutorial.

Don’t Use Date Permalinks

Another tip from Joost de Valk is that unless your site provides news or time-specific information, 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 site’s URLs.

Avoid using permalinks that time-stamp your content

(Avoid using URL structures that time-stamp 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 Blog Already Has Content?

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

Warning

If your website or blog is already established 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 up and running for a while could create issues and errors.

Use 301 Redirects

As you’ve seen in earlier screenshots, some WordPress users (or whoever set up their site) seem to be unaware of the search-friendly URLs feature of WordPress.

Maybe you started out using the default WordPress URL structure and now you want to improve your SEO. Maybe your website or blog was configured to display post dates in your URLs and now all of your content is showing as being two or three years old and you want to remove the date portion in your URLs.

The best way to change your URL structure without negatively affecting your site’s SEO or existing rankings is to add ‘301 redirections’ to reassign all links set up using the old permalink structure to URLs that use the new syntax.

A code ‘301’ is interpreted by search engines as a link that has permanently moved. 301 redirects are the most effective and search engine friendly way to redirect visitors to new site destinations and avoid running into ‘404’ (Page not found) errors if they click on an old link.

To effectively change your permalink structure and avoid damaging your search rankings, sending visitors to broken links, etc. you should configure a redirection system before changing the permalink structure of your site.

You can site or blog using WordPress plugins like Simple 301 Redirects, or Redirection, or use the services of a professional to help you set up and redirect your permalinks correctly to avoid issues and troubleshoot any errors.

WordPress redirection plugin Simple 301 Redirects

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

Congratulations! Now you know how to configure your WordPress site or blog to display SEO-friendly URLs for your posts. To learn more about using Permalinks, see the official WordPress documentation below:

http://codex.wordpress.org/Using_Permalinks

***

"Your training is the best in the world! It is simple, yet detailed, direct, understandable, memorable, and complete." Andrea Adams, FinancialJourney.org