WordPress offers you the ability to create a custom URL structure for your permalinks and archives. There are six options to select from:
- Plain: – This is the default setting or the ugly permalink, for e.g. http://domain-name.com/?p=123. This type of permalink should never be used.
- Day and name: – This uses a year/month/date format followed by your post’s name. For e.g. http://domain-name.com/2016/01.01/sample-post. This type of permalink is mainly used for news articles to tell when particular news was published. They have keywords relating to your article as the post name.
- Month and name: – This is the same as above only without date. For e.g. http://domain-name.com/2016/01/sample-post. This type of permalink is used for blogs like the Google’s Blogger.com. It is ideal for tech and news blogs etc.
- Numeric: – This option just uses the ID of the post from the row in the wp_posts table of your database. For e.g. http://domain-name.com/archives/123. The use of this type of permalink is never recommended as doesn’t convey any message or have any keyword that shows user or Google what topic the post is about.
- Post name: – This one uses the name of your post. For e.g. http://domain-name.com/sample-post. Now this one has your post name. It may not differentiate between a post permalink and a page permalink but still it may convey the search engines and the users what topic your post is related to.
- Custom Structure: – This permalink allows you to define your own structure using the full set of structure tags available in WordPress. Here you can experiment with different permalink structure tags. Having a category tag between your domain name and post name will help to keep your permalink organized. You can use post name, category, tag, year, month, date, etc structure. This type of permalink is considered to be SEO friendly and have a higher visibility.
Creating Custom Permalinks
WordPress offers you 10 different structure tags for defining you own custom permalink structure. The most commonly used URLs are listed below:
- %postname%: This is your post’s slug.
- %post_id%: This your post’s unique ID.
- %category%: The main category of your post.
- %year%: The year of the post. It helps in identifying the year a particular post was published.
- %monthnum%: The month a post was published.
- %day%: The date on which a particular post was published.
- %author%: This helps in identifying the author of the particular post. It is useful when there are multi-author, magazine type environments.
In case you wish to be more specific about your posts they are tags that you can use Such as the %hour%, %minute% and %second% tags. It is based on user’s interest if he/she wants to use these tags but these are the lesser used tags and wouldn’t actually of much use.
But one thing you should keep in mind while defining your custom permalink structure is that you need to include at least one of these, your %postname% or the %post_id% in order for WordPress to be able to target a specific post. These are the most important tags that will guarantee you unique identifiers and greater visibility on the search results. Utilizing both these tags, you can use /%id%/%postname%/.
SEO Friendly Permalinks
Your permalink and link structure is very important from an SEO point of view. Going by Google’s guidelines on URL structure, it is absolutely straightforward: keep it as simple as possible, and intelligible to humans. When a user types a query on Google, he/she is given four different pieces of information such as the title, date, description and the permalink.
These details help user to decide if the post contains the content that they are searching for. The best SEO practices involve the following:
- Keep URL short – ideally under 100 characters.
- Use keywords in the URLs, but don’t overuse or stuff them.
- Remove dynamic properties where possible.
- Use hyphens as separator and avoid using words like and, or, but, of, the.
So, in this post we have summed up how you can have the best permalink structure for your site.
Getting your permalink structure is the first step you need to take while setting up your blog or website on WordPress. From what we have seen from the SEO perspective, it is advisable to include and use pretty permalinks and avoid the default or the ugly permalinks, to be readable by humans.
As far as figuring out what is an ideal permalink structure for a WordPress is then it totally depends on what the content is. Having your post name and category helps to keep it in well-defined format and is beneficial from the search engine and user point of view. You can also consider using the WP Category Permalink plugin.