Wouldn’t it be great if after publishing new content on your WordPress site, the following happened … just from your post URL:
- Site visitors could easily assess what your page was about,
- Search engines would find your pages faster,
- Every single content item created on your website or blog would have a unique ID, making your content easier to manage.
Well, with WordPress permalinks you can!
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 organize things together) like archives.
A permalink is the URL that other people will use to link to articles or sections of your site or the links you send in an email pointing to a particular post on your website. Some people refer to permalinks as “pretty” URLs.
Permalinks make the web address pointing to each post on your website permanent, hence a perma-link.
Permalinks – Why Do You Need To Use Them?
Hopefully, you are probably aware that, WordPress is one of the best Content Management Systems available when it comes to SEO.
WordPress is not only well optimized right out of the box, but its SEO aspect can be easily fine tuned using excellent SEO plugins.
If you are looking to optimize the SEO aspect of your site or blog, then you should not ignore the importance of your URLs. Search engines like Google place considerable weight on the structure of your site’s URLs when indexing pages.
Permalinks can be used to make the links on your site into “search engine friendly” URLs. Permalinks are also used to improve the aesthetics, usability, and forward-compatibility of your links.
Now … let’s review the reason why it’s best to set up permalinks when publishing content in WordPress.
By default, a WordPress installation uses a non-search engine friendly URL structure for your posts that looks like this …
WordPress uses the above link structure to locate data inside your database. It does not mean anything to search engines or visitors, and it doesn’t help your site with on-site search engine optimization.
As the screenshot image taken directly from Google search results below shows, many WordPress users have not yet set up their permalinks …
Although Google is still indexing the above sites, the owners of these sites are potentially missing out on extra SEO benefits.
To get optimal SEO benefit from using WordPress and improve your site’s rankings, you will want to make sure to set up your permalinks structure to make it more search engine-friendly by displaying relevant keywords in your URL, instead of meaningless numbers and symbols.
WordPress allows you to create a custom URL structure for your published and archived posts, so your content can go from this …
To something with an SEO-friendly URL like this …
Out of the box, WordPress URLs are not very search engine-friendly. In this tutorial, you will learn how to configure your permalinks in WordPress to display posts using search engine-friendly URLs.
Configuring Your WordPress Permalinks
In your WP administration menu, select Settings > Permalinks …
This brings up the Permalink Settings screen …
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
In the Common Settings section, select Custom Structure, then add one or more ‘tags’ (see below) to create SEO-friendly URLs …
(Configure 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/how-to-save-money-on-cruise-travel
Instead of this …
http://www.mytravelsite.com/?p=6987
(Using permalinks helps visitors and search engines understand what the page is about)
How To Create 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 of the post, displayed as four digits (e.g. ‘2012’)
- %monthnum% – The month the post gets published (e.g. ‘03’)
- %day% – Day of the month (e.g. ‘10’)
- %hour% – Hour of the day (e.g. ‘24’)
- %minute% – The minute the post gets published (e.g. ‘09’)
- %second% – The exact second your post gets published (e.g. ‘02’)
- %post_id% – The unique ID # of your post (e.g. ‘6750’)
- %postname% – A correctly formatted version of the post title. For example, if the post title is ”It Ain’t Worth Doin’ No More!”, the postname tag will convert this into “it-aint-worth-doin-no-more” (all lower case letters and no punctuation marks) in the URL. Tip: You can always 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 …
Or, use one of the following structures:
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 …
Choosing ‘Post name’ is the same as selecting ‘Custom Structure’ and using the /%postname%/ tag.
Permalinks – Optional Settings
This section lets you configure custom structures for your category and tag page URLs.
You can change the ‘base’ category or tag for your URLs using the following syntax:
- domain.com/category_base/category_name
- domain.com/tag_base/tag_name
For example, using “news” as your category base will display your category links as ‘http://domain.com/news/uncategorized/’.
So, if you add the following to your permalinks Optional > Category base settings section …
Your ‘category archives’ page URL will go from looking like this …
To something like this …
If you leave the optional settings fields blank WordPress uses the defaults.
Remember to save your changes when done …
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
Use Descriptive Categories
To get the most 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 some points to keep in mind if you are wondering whether you should add categories to your permalinks or not:
- If your category is short and descriptive (e.g. uses a relevant keyword or keyword phrase), you may want to add categories 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.
- If you are going to post content under multiple categories, then we recommend not using the category tag in your permalink structure.
Ultimately, when it comes to using category vs no category there really is no perfect permalink structure to use. Choose the permalink structure that 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 other tutorials.
Make Your Posts Timeless
Another useful tip from Joost de Valk is that unless your website provides news or time-specific information, or you have a special reason to date your content, avoid selecting date-based permalink options when configuring your URLs.
(Avoid setting up permalinks that time-stamp your posts)
Although using permalinks that date your content may be considered better that using no permalinks at all from an SEO aspect, visitors are less likely to click on a post if it is several years old, even if the content is relevant to what they are searching for.
What If My Blog Already Has Published Posts?
Normally, your permalinks should be set up when you first install WordPress. This should be part of your website planning process.
If your website or blog 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 something that absolutely needs doing, as doing so could create SEO issues and loss of traffic.
Add 301 Redirection
As you’ve seen in earlier screenshots, many WordPress site owners (or whoever set up their site) seem to be completely unaware of the permalinks feature of WordPress.
Maybe when you started out, your site used the default WordPress URL structure and now you want to improve your SEO. Perhaps your website was originally set up to display post dates in your web address and now all of your content is perceived as being outdated and you want to delete the date portion of the URLs.
The best way to edit your permalinks without affecting your site’s SEO or rankings in a negative way is to add ‘301 redirections’ to point links set up using the old permalink structure to web addresses using the new permalink structure.
Search engines interpret a ’301′ code as a link that has been permanently relocated to another address. 301 redirection is the most effective and search engine friendly way to redirect users to new website destinations and avoid ‘404’ (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 install and set up your redirection system before messing with the permalink structure of your site.
You can site or blog using WordPress plugins like Simple 301 Redirects, or Redirection, or get a professional to help you set up and redirect your permalinks correctly to avoid any issues and troubleshoot any errors.
(Set up 301 redirections using a WP plugin or get professional assistance)
Congratulations! Now you know about the built-in system WordPress uses to display SEO-friendly URLs for your posts. For additional information on using Permalinks, refer to the WordPress codex here:
http://codex.wordpress.org/Using_Permalinks
***
"I am beyond impressed with what you have put together. I can tell that you put a ton of hard work into building what you have. You have the absolute best content on WordPress I have ever seen!" - Robert T. Jillie