A Complete Guide About Permalinks in WordPress

You are here : Home / A Complete Guide About Permalinks in WordPress

Selecting the best permalink structure for your blog is a preliminary and vital step, because an inaccurate and complex permalink can give terrible results for you website or blog.

Permalink is consisting of two words Parma and link. Parma means permanent and link stands for URL. Hence permalink is the permanent URL that points to an individual page or post of a website.

Perma(Permanent)+link(url)=Permalink

By default, a WordPress permalink structure is like this:

http://www.mywebsite.com/?p=13

Where www.mywebsite.com is domain of your website and p=13 is id of your post.
It is not a perfect permalink for your page or post.Because of the following reasons

  • p=13 does not showing information about your page contents.Here we can’t guess anything about subject of your post. We have to make it more human friendlier and more readable.
  • Search engines does not like this type of permalinks.Hence by using this type of permalink, you are decreasing your chances of ranking higher in search engines.

if you are suffering with same problem don’t worry.Wordpress comes with tools to customize your permalink very easily.

Customizing Your Permalink

To customize the default structure of your permalink you need, go to Settings and then click on Permalink.

parmalink A Complete Guide About Permalinks in WordPress

This will open a window that looks like the given below image . You can see many six options like default,day and name,month and name,numeric,post name and custom structure.You can customize structure of the permalink by clicking on Custom Structure.

commen settings A Complete Guide About Permalinks in WordPress

For customizing your permalink there are some useful tags available to you.By using them you can edit you Permalink structure.

  • %year% = the year of the post (Example Output 2014)
  • %monthnum% = month of the year (Example Output 02)
  • %day% = day of the month (Example Output 11)
  • %hour% = hour of the day (Example Output 12)
  • %minute% = minute of the hour (Example Output 15)
  • %second% = second of the minute (Example Output 33)
  • %postname% = post slug (Example Output this-is-my-blog)
  • %post_id% = the ID of the post
  • %category% = category slug of where the post is stored
  • %author% = author name

Combining more then one tags– We can use each tag individually or join them with other tag with the help of ‘’/ ” for making your choice URL. For eg /%firsttag%/%secondtag%/%thirdtag%/.
Here are a few examples of combined permalink structures:

  • /%category%/%postname% = http://mysite.com/ uncategorized /post-title
  • /%monthnum% /%year%/%postname%/ = http://mysite.com/5/2014/post-title

You can also add a string or file extensions, to the end of the url if you wants a completely static site.

  • /%category%/%postname%/ = mysite.com/category/post-title/ (forward slash added)
  • /%category%/%postname%.html = mysite.com/category/post-title.html

After selecting your tag combination, paste it in the text field and then click on “Save Changes” that’s it. Now your .htaccess file will automatically be updated, and it will also change your URL according to new permalink structure.

We have learned about different type of permalinks .So now the question is what is the best permalink for your website?

The simplest and easiest way to get the best permalink for your website just clicks on Post name (/%postname%/) options from Common Settings. Using the post name as the permalink is the most suggested option for search engine optimization, and also user friendly.

post name A Complete Guide About Permalinks in WordPress

However if your website is managing hundreds to thousands of blogs there are great chances for duplication if we are using only Post name. So in that cases you must use Post id with Post name(/%post_id%/%postname%/ ) that is unique and seo friendly.

 A Complete Guide About Permalinks in WordPress

Flipper Code

We have been building WordPress Plugins at flipper code since 2008. We follow wordpress coding standard that ensures we deliver the excellent wordpress plugins and services.

More Posts - Website

Follow Me:
twitter A Complete Guide About Permalinks in WordPressfacebook A Complete Guide About Permalinks in WordPressgoogleplus A Complete Guide About Permalinks in WordPress

Customize Product according to your requirements?

We will be glad to discuss any of your needs related to our wordpress plugins . if any of functionality you'd like to see in products, you can reach us by via email hello@flippercode.com.