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 …

Using Permalinks To Improve Your WordPress SEO

Wouldn’t it be great if after publishing content on your WordPress site, the following could take place … all from your URL:

  • Potential site visitors could tell what the page is about,
  • Google would easily find your pages and correctly index their content for better search results,
  • Every content item on your website or blog would have a unique identifier, making things easier to manage.

Well, with WordPress permalinks you can!

How To Set Up And Use WordPress Permalinks

What’s A Permalink?

Permalinks are the permanent URLs to an individual WordPress post, category, or other taxonomy (a way to organize 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 readers to posts on your site. Some people also call permalinks “pretty” URLs.

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

Permalinks – Why Do You Need To Use Them?

Hopefully, by now you probably know that, WordPress is one of the best Content Management Systems you can use when it comes to SEO.

WordPress is not only great for SEO out of the box, but the SEO aspect can be considerably fine tuned with SEO plugins.

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

Permalinks are used to turn links on your site into “prettier” 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 the reason why you may need to use permalinks if publishing content in WordPress.

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

Changing Your WordPress PermalinksWordPress uses the above link structure to find information inside its database. It doesn’t really mean much to anyone, and it doesn’t help your website with on-site SEO.

As the screenshot image taken from Google search results below shows, many WordPress users have not configured their sites to use permalinks …

Improve Your WordPress SEO With Permalinks

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

To get the maximum SEO benefit from 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 numbers and symbols.

WordPress lets you create a custom URL structure for your published and archived posts, so your pages can go from this …

Improve Your WordPress SEO With SEO-Friendly URLs

To this …

Using Permalinks To Improve Your WordPress SEO

Out of the box, WordPress post URLs are not very SEO-friendly. In this step-by-step tutorial, you will learn how to set up your permalinks in WordPress to help you get better indexing in Google.

Configuring WordPress Permalinks

In your WP administration menu, click on Settings > Permalinks

How To Improve Your WordPress SEO Using SEO-Friendly URLs

This will bring you to the Permalink Settings screen …

How To Configure 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 default.

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 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-deals/romantic-cruise-holiday-bargains

Instead of this …

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

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

(Using permalinks helps visitors understand what the page is about)

Creating Pretty WordPress URLs

“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, four digits (e.g. ‘2013’)
  • %monthnum% – The month the post is published (e.g. ‘01’)
  • %day% – The day the post is published (e.g. ‘29’)
  • %hour% – The hour the post gets published (e.g. ‘16’)
  • %minute% – The minute your post is published (e.g. ‘18’)
  • %second% – Second of the minute (e.g. ‘51’)
  • %post_id% – The unique ID # of the post (e.g. ‘3368’)
  • %postname% – A correctly formatted version of your post title. For example, if the post title is ”Ten Best Hotels In Cote D’Azur!”, the postname tag will convert this into “ten-best-hotels-in-cote-dazur” (all letters converted to lower case and exclamation marks removed) in the URL. Tip: You can edit the URL 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 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:

How To Improve Your WordPress SEO With Permalinks

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 ‘Custom Structure’ and adding the /%postname%/ tag.

Permalinks – Optional Settings

Using Permalinks To Improve Your WordPress SEO

If you need to set up custom permalinks for your tag and category archive page URLs you can do this in this section.

You can change 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 will make your category links display as ‘http://domain.com/travel/category_name/’.

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

Using Permalinks To Improve Your WordPress SEO

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

Configuring WordPress Permalinks

To something like this …

Using Permalinks To Improve Your WordPress SEO

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

Remember to save your changes after you are done …

How To Configure Your WordPress Permalinks

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 the greatest benefit out of 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 some points to consider if you are wondering whether you should add categories to your permalink structure or not:

  • If your domain is short and your category 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 copy and decrease the SEO benefit.
  • Do you plan to post content under only one category or multiple categories? 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.

Despite being the subject of intense debate in WordPress SEO circles, when it comes to category vs no category there is no ”better” 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 cover WordPress categories in another tutorial.

Create Timeless Posts

Another great 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 date your site’s content, avoid choosing date-based permalink settings for your site’s URLs.

Avoid setting up URL structures that date your posts

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

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

Changing Permalinks In Site With Many Published Posts

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

Note

If your website is already established or you have a lot of content already indexed in the search engines and you would like to change the permalink structure, make sure that this is really necessary, as changing permalinks after your site has been going for a while can create SEO issues and errors.

301 Redirection

As you’ve seen in the above screenshots of actual search results, many WordPress users (or whoever set up their site) are completely unaware of the permalinks feature of WordPress.

Maybe when you started, your site used the default WordPress URL structure and now you want to improve your SEO. Maybe your website or blog was originally set up to display post dates in your URLs and now all of your content is showing as being 2-3 years old and you want to remove the date tags of the URLs.

To edit your permalink structure without negatively affecting your site’s SEO or existing rankings you should use ‘301 redirects’ to point links set up using the previous permalink structure to links using the new structure.

A code ‘301’ is interpreted by search engines as a link that has permanently been relocated to another destination. 301 redirection is the most efficient and search engine friendly way to redirect users to new site destinations and avoid running into ”page not found” errors when clicking on an old link.

To effectively change your permalink structure 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 site or blog using a redirection plugin 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.

WP plugin Simple 301 Redirects

(Set up URL redirections using a WordPress plugin or use the services of a professional)

Congratulations! Now you know how to configure your blog’s permalinks to display search engine-friendly URLs for your posts and improve your search search rankings. For additional information on using Permalinks, refer to the WordPress codex here:

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

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