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 WordPress Permalinks

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

  • Potential visitors to your site could easily understand what the content was about,
  • Search engines would be able to find your posts faster,
  • Each post you create on your website would have a unique ID, making things easier to manage.

Well, this is what a permalink lets you do!

How To Set Up And Use WordPress Permalinks

Permalinks – Definition

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

A permalink is the URL that other people will use to link to your posts or sections of your site or the links you send in an email pointing readers to your posts. Some people also call permalinks “pretty” URLs.

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

Permalinks – Why Do We Need To Use Them?

As you are probably aware, WordPress is one of the best Content Management Systems you can use when it comes to publishing search optimized content.

WordPress is not only great for SEO out of the box, but there are excellent SEO plugins you can use that can help to finetune its SEO aspect.

If you are looking to optimize the SEO aspect of your website, then you cannot ignore the importance of your site’s URLs. Google places considerable weight on the URL structure of a site.

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 see the reason why it’s best to configure your permalinks in WordPress.

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

Setting Up Your WordPress PermalinksWordPress uses the link structure with a string query shown above to find data within its database. It does not help your website with on-site SEO.

As the screenshot image from Google search listings below shows, many WordPress users have not yet set up their sites to publish search optimized content online …

How To Set Up WordPress Permalinks

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

To get maximum SEO benefit out of using WordPress and improve your site’s rankings, you should 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 …

How To Improve Your WordPress SEO With Permalinks

To something like this …

Changing WordPress Permalinks

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

How To Configure Your WordPress Permalinks

In your WP administration menu, click on Settings > Permalinks

Configuring Your WordPress Permalinks

This brings up the Permalink Settings screen …

Configuring 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 “pretty” permalinks instead for our posts. To do this, we need to specify a different Permalink structure than the 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 search engine-friendly URLs

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

Instead of this …

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

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

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

Creating Pretty WordPress URLs

“Pretty” permalinks, 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, displayed as four digits (e.g. ‘2013’)
  • %monthnum% – Month of the year (e.g. ‘04’)
  • %day% – The day your post gets published (e.g. ‘06’)
  • %hour% – The hour the post is published (e.g. ‘07’)
  • %minute% – The minute the post is published (e.g. ‘13’)
  • %second% – The exact second the post gets published (e.g. ‘11’)
  • %post_id% – The unique ID # of the post (e.g. ‘7680’)
  • %postname% – A correctly formatted version of the 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 letters converted to lower case and exclamation mark removed) in the URL. Tip: You can edit this wording 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 …

How To Improve Your WordPress SEO Using Permalinks

Or, use one of the following structures:

Using Permalinks To Improve Your WordPress SEO

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 …

Configuring Your WordPress Permalinks

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 page URLs.

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

So, if you add the following to your permalinks Optional > Category base settings section …

Using Permalinks To Improve Your WordPress SEO

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

Setting Up Your WordPress Permalinks

To something like this …

Configuring WordPress Permalinks

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

Remember to save any changes after you are done …

Improve Your WordPress SEO Using SEO-Friendly URLs

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 – Additional Notes

Categories

To get maximum benefit out of using Permalinks, it’s important 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 permalinks:

  • If your category is short and descriptive (e.g. uses a relevant keyword or keyword phrase), 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 copy or share 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 is no perfect permalink structure to use. Choose a permalink structure you think will suit your needs best. Many SEO experts and webmasters recommend making your web address short enough to be attractive and long enough to be descriptive.

We cover WordPress categories in other articles.

Don’t Use Date Permalinks

Another great tip from Joost de Valk is that unless your aim is to run a news site or you have any special reason to add dates to your URLs, avoid selecting date-based permalinks when configuring your URLs.

Avoid setting up permalinks that time-stamp your content

(Avoid using URL structures that time-stamp your posts)

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

What If My Blog Already Has Lots Of Indexed Posts?

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

Important Info

If your website or blog has been running for a while 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 doing so can create issues and errors.

Use 301 Redirects

As you’ve seen earlier, 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 permalinks and now you would like to optimize your site better for search engines. Perhaps your website or blog was originally set up to display post dates in your web address and now all of your posts are perceived as being outdated and you want to remove the date portion in your URLs.

To change your permalink structure without negatively impacting your site’s SEO or rankings you should use ‘301 redirects’ to reassign all links using the old URL structure to web URLs using the new permalink structure.

Search engines interpret a code ‘301’ as a link that has permanently relocated to another destination. 301 redirects are the most effective and search engine friendly way to redirect visitors to new website destinations and avoid running into page errors when following an old link.

To effectively change your syntax and avoid SEO problems, sending visitors to error pages, etc. you will need to add your redirection system before changing the permalink structure of your site.

You can WordPress site or blog using a redirection plugin like Simple 301 Redirects, or Redirection, or get a professional to assist you with setting up and redirecting your permalinks correctly to avoid issues and troubleshoot any errors.

WP plugin Simple 301 Redirects

(Set up link redirections using redirection plugins or use the services of a professional)

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 here:

http://codex.wordpress.org/Using_Permalinks

***

"Wow! I never knew there's so much to learn about WordPress! I bought one of the WordPress for Dummies three years ago, such authors need to be on this course!" - Rich Law, Create A Blog Now

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