rss
14

Best Permalink structure for WordPress

  • Sumo

Hi dear WordPress geeks! Today I have a great news for you! WordPress is the best ever content management system I have ever seen!

Actually I haven’t used many of them, but instead I have developed several own CMS systems and have solid experience with Joomla and WordPress, and you know what? WordPress has the best flexibility for URL (permalink) structure.

As you know for search engine optimization it is very important to have user friendly and human readable URLs like (http://some.com/all-about-seo-optimized-permalink-structure) instead of just http://some.com/?article=456.

And it is very easy to configure these kinds of URLs in WordPress. For that just open your Dashboard, go to the Settings->Permalinks and choose Post name option (as show in the picture below)

Best WordPress Permalink

* Click to enlarge

This option will give you nice SEO friendly URLs.

 

But wait! I have even better solution for you!

In my opinion the best permalink structure is /%post_id%/%postname%/

And I highly recommend you to use that structure. It has great advantages.

 

Significantly increases WordPress performance

First part of the URL of your posts will include a number which is unique identifier of a post and WordPress will use only this number to quickly find post in the database. If you don’t have post_id in URL, WordPress will use slug for finding the post, which means that it should search for a TEXT throughout the database, which is much slower operation that searching for a number.

 

Makes possible to integrate your website with Google news

If you are running a news website and you want to integrate it with Google news, than you should have unique identification number of an article in URL. So post_id parameter will server as unique identifier for Google news.

 

SEO friendly URL

Second part of the URL contains slug which you set in post editor.  Slug is a short description of a post, usually it is same as post title, but you can change it and put other related keywords for increasing SEO weight of the title and URL.

 

Eliminates NOT found errors for unicode URLs

Probably this is the most important point. It is particularly for those who have websites in languages other than English and uses non-English slugs for posts. For example

http://sportarmenia.com/վիկ-դարչինյանը-պարտվեց-շինսուկե

As you may noticed, this kind of URLs are changing if you try to copy them from browser’s address bar. You will get something like this:

http://sportarmenia.com/%D5%BE%D5%AB%D5%AF-%D5%A4%D5%A1%D6%80%D5%B9%D5%AB%D5%B6%D5%B5%D5%A1%D5%B6%D5%A8-%D5%BA%D5%A1%D6%80%D5%BF%D5%BE%D5%A5%D6%81-%D5%B7%D5%AB%D5%B6%D5%BD%D5%B8%D6%82%D5%AF%D5%A5

And it happens that while sending this address to a friend via email, chat or Facebook you miss some characters from the end and address becomes unavailable.

But with the permalink structure I suggest you no longer have this problem, because now WordPress will search for a post by post_id and not by slug. So you can even delete the second part of the URL, anyway WordPress will find the post!

In this case all of these URLs will point to the same post with post_id 111.

http://sportarmenia.com/111/%BE%D5%6%80%D5%B9%D5%AB%D5%B6%D5%B5%D5%A1%D5%B6%D5%A8

http://sportarmenia.com/111/%BE%D5%6%80%D5%B9%D5%AB%D5%B6%D5%B5%D5%A1%D

http://sportarmenia.com/111/%BE%D5%6%80%D5%B9%D5%AB

Great! No more Not Found errors, even if people mistype the URL of your posts.

So, enjoy reading and don’t forget to share with your ideas about this topic.

About the Author

Edgar Marukyan is an expert of website development and performance optimization, who maintains and consults clients with high load traffic websites.. If you need an assistance, feel free to drop me a line.         Website - Twitter - Facebook

Comments (14)

Trackback URL | Comments RSS Feed

  1. AJ says:

    Does the post_id need to be in front of the post_name? Can it be after or does that defeat the purpose?

  2. Joe says:

    I agree, WP is superior to anything else available. I cannot understand why people will pay for such CMS as Squarespace when WP is available for free. Here is a hilarious little Squarespace review, by the way: http://twoblog.com/review-squarespace-com/ which I thinks agrees with what I am saying :)

  3. Allen says:

    Have you tested the ram usage if you use different links?

    • I did not perform that kind of synthetic tests.
      But I plan to do it, because I deal with high load WordPress websites, and this is one of the issues I’ll address.
      So stay tuned! There will be more interesting stuff here!

  4. nikhil says:

    woah! thnks… i was thinking of /%category%/%postname%/ But feel this is better as it might increase the load speed as well.

  5. Thanks It will help me to select permalink structure for my blog.

  6. leiva says:

    I have changed permalinks structure to blog.com/post.html
    Isnt this even better for SEO?

  7. Jason Luck says:

    Thank you for the advice. Is it wise to change the permalink structure for an existing site or should you stick with whatever you initially set up?

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.