WordPress SEO Tutorial: The Best SEO Permalink Structure

How to Use Permalinks to Enhance Your WordPress SEO Blog

This is the first of the WordPress SEO Tutorials series.

By default, WordPress gives you this dynamic URL for your post: “http://yourdomain.com/?p=SOME-ID-NUMBER”. The best SEO permalink structure is to have your post appears with ‘category’ and the ‘post title’ in the URL.

This looks something like this: “http://yourdomain.com/category/post-title”

Why is this the best SEO permalink structure compares to the other structures?

To simply put, this permalink structure allows you to have ‘more’ keyword loaded into the URL of your post. Since the category that you’ve placed your post under usually related to the post title (which hopefully is keyword-loaded itself), you will have the extra SEO benefit if other people use that permalink structure to link your post.

How to Change the Default Permalinks to ‘Category/Post-Title’ Permalinks

In order to change the default permalink structure, you need to go to “OPTIONS -> Permalinks” in your admin panel and paste this code into the BOX after “Custom Structure:”

/%category%/%postname%/

Next, click the “Update Permalink Structure >>” button; if WordPress does NOT automatically update the permalink structure to for you–don’t worry–just do the following:

-If you don’t have a .htaccess file in your root directory (public_html/.htaccess) already, just ‘create a new file’ and name it .htaccess and place it in “public_html” directory or whatever directory you have your WordPress blog installed (e.g. public_html/blog/.htaccess, which is equivalent to yourdomain.com/blog/.htaccess).

-Then, copy and paste the code WordPress gives you after clicking on the “Update Permalink Structure >>” button into your .htaccess file. *Note: You need to click on the some option (e.g. ‘Edit’) of your .htaccess file to open up a window to paste your permalink code in the file.

The code is same as following if you are using WordPress 2.0 or higher:


RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Just copy and paste that ‘mod-rewrite’ code into your .htaccess file, save it, and you are DONE!

Now, your old AND new post will automatically carry the category the post is assigned to, plus the title name of that post:

http://yourdomain.com/blog/category/post-title

*Note: That’s the default ‘Post-Slug’ structure after the updated permalink, but if you want to change the name of the ‘post-title’ in the post’s URL, just go to ‘Post-Slug’ (located on the right-hand side of the “Write” page) and input/change to what name you want.

Also, be sure to check out my post on “3 WordPress Plugins to Safely Change Your Permalink Structure” if you’re going to change to your blog’s old permalinks to a new permalink structure.

O.K. Now, that concludes my first WordPress SEO tutorial on permalink structure. If you have any question, just post a comment below…



Related posts on 

If you like "WordPress SEO Tutorial: The Best SEO Permalink Structure,"
please consider linking to this page:

50 Comments to “WordPress SEO Tutorial: The Best SEO Permalink Structure” »
  1. [...] my previous post on “WordPress SEO Tutorial: The Best SEO Permalink Structure,” I realize that I had left out a major point to be taken: if you’re changing your old [...]

  2. May 29th, 2007 at 12:10 am
    Rich Page wrote:

    Nice guide! This definitely is the best permalink type for SEO – dont bother with dates.

    Rich Page
    http://www.rich-page.com
    Internet Fanatic

    Reply to this comment »
  3. May 30th, 2007 at 10:57 am
    Juliaxxx wrote:

    Nice post! must say

    I did that at http://www.bontb.com

    Reply to this comment »
  4. May 30th, 2007 at 12:41 pm
    SEO Blogger wrote:

    Hey, be sure to check out my post on “3 WordPress Plugins to Safely Change Your Permalink Structure” before proceeding to the change :wink: .

    Reply to this comment »
    1. August 5th, 2009 at 4:25 am
      Turkcafem wrote:

      sesli sohbet sesli chat

      Reply to this comment »
  5. July 19th, 2007 at 9:01 am
    K-IntheHouse wrote:

    Nice info. But, what happens when you decide to change the names of your category or just be done with some after a while?

    I am currently using dates but thinking of switching to the above mentioned permalink structure. Also, how about using UTW tags instead of category?

    Reply to this comment »
  6. [...] my previous post on “WordPress SEO Tutorial: The Best SEO Permalink Structure,” I realize that I had left out a major point to be taken: if you’re changing your old [...]

  7. October 23rd, 2007 at 11:57 am
    omi wrote:

    What about changing it for the first time? For instance my cat link could be ?cat=23 but then once I put permalinks it goes to 404, because it’s /%category%/

    Is there anything that can redirect regular string stucture to the new permalink?

    Reply to this comment »
  8. [...] http://theseoblogger.com/seo-b.....structure/ [...]

  9. November 9th, 2007 at 6:39 am
    ket wrote:

    Thanks for your tip,

    i have just followed exactly what you have suggested

    Reply to this comment »
  10. November 9th, 2007 at 9:05 am
    Alex wrote:

    A good point regarding URL structure, check out my SEO beginners guide on SEO Tutorials for other useful tips when building your site.

    Reply to this comment »
  11. February 16th, 2009 at 11:03 am
    P@r@noid wrote:

    Somehow I will not sugest using category permalink structure if you choose more then two category for one post

    Reply to this comment »
  12. February 18th, 2009 at 10:28 am
    BJ Carter wrote:

    I have been looking into the best structure and your points make good sense. Many SEO Gurus use the %postname% solely structure. Many others say that might be the best way, but I wonder about the Wordpress info on this:

    Using only %postname%

    If you use postname as the only element in your permalinks to create a structure such as example.com/post-title, the rewrite rules may make it impossible to access pages such as your stylesheet (which has a similar format) or the /wp-admin/ folder [is this true in WordPress 2.0+ versions?]. It’s best to include some numeric data (e.g. the post ID or date) in the permalink to prevent this from happening. Additionally, WordPress v1.2.x requires the use of a date structure in order for some features, such as the calendar, to function properly. /%year%/%monthnum%/%day%/%postname%/ is always a good start.

    What are your thoughts on that?

    BJ Carter
    Webnovate

    Reply to this comment »
  13. [...] with old permlink are already in Google’s index then you need to redirect them to new URLS. The SEO blogger has written a quality post about this [...]

  14. March 11th, 2009 at 11:14 pm
    Rodney wrote:

    Does your permalink structure really matter? According to the people at Stompernet Google doesn’t care about that. Maybe other search engines do.

    Reply to this comment »
  15. [...] The SEO Blogger, they are making a sound point about the importance of getting the post’s name in the [...]

  16. April 1st, 2009 at 10:51 pm

    [...] struktur Day and name dan Month and name adalah yang bagus, tetapi ada pula yang mengatakan bahwa Custom Structure yang paling bagus, karena kita dapat mengkostumisasi sendiri dari permalink [...]

  17. April 5th, 2009 at 6:48 am

    I’ve also created a structure with /%post_id%/%postname% in line with Wordpress’ advice to including numbers.

    http://www.harleytherapy.co.uk.....-recession

    I’ve also heard that creating an extension .htm is beneficial too e.g. http://www.harleytherapy.co.uk.....ession.htm

    Any one found this too?

    Reply to this comment »
  18. April 18th, 2009 at 11:17 pm
    bikash wrote:

    Thanks for the tutorial. It’s of great help.

    Reply to this comment »
  19. April 27th, 2009 at 8:06 am
    mesol wrote:

    One of the latest link building fads seem to be commenting on peoples blogs. Now personally I think this is a good idea, everyone seems to be a winner, blog want reader, SEO want link from multiple different blogs. Everyones happy. (It does tend to create a whole loads of complete rubbish conversation completely built to get post by hay no victims there).

    Reply to this comment »
  20. April 29th, 2009 at 10:59 am
    Sayeed wrote:

    I am using this tip at my site Breaking Jist but what is the “extra SEO benefit” to this?

    Reply to this comment »
  21. May 10th, 2009 at 11:54 am
    Rob wrote:

    I’m going for /%postname%/ on most of my WP sites but can imagine including categories could be usefuk for catching more search terms if you choose the category names wisely.

    Reply to this comment »
  22. May 21st, 2009 at 1:03 pm
    Review Boss wrote:

    I’m not sure if this Permalink structure is really the best.

    When you use /%category%/%postname%/ SE’s and web browser would treat it as a directory rather than a page. In my opinion Google gives more priority to a content rich “page” than a directory.

    The page loads slowly on older browser when you use directory structure! Instead if you use /%category%/%postname%.html the browser will request the exact page.

    One more point; if your domain name contains your main keyword then there is no need to add /%category%/ to your URL. The domain name, directory name and URL will have your keywords…so it might look like over optimization for Google.

    One of my sites got penalized by Google after I changed my Permalink!

    So be careful :)
    RB

    Reply to this comment »
  23. [...] my previous post on “WordPress SEO Tutorial: The Best SEO Permalink Structure,” I realize that I had left out a major point to be taken: if you’re changing your old [...]

  24. [...] The SEO Blogger also recommends only using /%postname%/ as the permalink [...]

  25. June 12th, 2009 at 2:11 pm
    V.C wrote:

    So what is the best structure permalink?
    I like the idea using : index.php/%category%/%postname%

    Reply to this comment »
  26. [...] WordPress SEO Tutorial: The Best SEO Permalink Structure [...]

  27. August 5th, 2009 at 4:23 am
    Turkcafem wrote:

    turkcafem.com, sesli sohbet sesli chat, sesli sohbet si,teleri, turkcafem

    Reply to this comment »
  28. August 6th, 2009 at 4:31 pm

    [...] detta format? På bloggen The SEO Blogger fann jag [...]

  29. August 19th, 2009 at 3:26 am

    Hey, thanks for the article…

    Just thought I’d throw in my $0.02 here… My experience tells me that the /%category%/ in the permalink structure is not the best. This is because it pushes the ‘meat’ of the keywords for that post further down into the URL, making those keywords valued less.

    Let me give an example. Say you’re trying to rank for “the best free iphone games” … it would be better for that URL to be:

    http://www.yoursite.com/the-be.....one-games/

    than for it to be:

    http://www.yoursite.com/iphone.....one-games/

    Again, this is personal experience. We’ve used both methods and found without /%category%/ to be more effective… This holds true for ‘long tail’ searches like the one above, as well as for shorter 2-word phrases… (To the best of my knowledge, our site doesn’t rank for any 1 word phrases… maybe one day :-)

    Reply to this comment »
    1. September 30th, 2009 at 10:42 am
      SEO Blogger wrote:

      Well one more point, I didn’t mention is to keep your resource URL short e.g. don’t go over board like “http://yoursite.com/long-category-name-title-url/long-blog-post-title.html”

      The fix for “long-category-name-title-url” is pretty easy, just keep your “Long Category Name Title URL” name, but change the slug to “short-category-slug”.

      One more thing, try to use less forward slashes “/” in your URL. For example, instead of “/ %post_title% / %post_id%”, use “”/%post_title% – %post_id%”. (See how the “/” is changed to “-”?).

      Also, the permalink structure depends on the type of site you are building, e.g. for magazine/news site, it’s better to use “/%post_title%” (and maybe date in the URL).

      *Last caveat note: part of the reason why I recommend “/%category%/%post_title%” permalink structure is because it helps the reader get an idea on what the topic of the page will be (and it shows hierarchical organization as well ;) .

      Reply to this comment »
  30. September 28th, 2009 at 11:02 am
    Raleigh SEO wrote:

    you will have the extra SEO benefit if other people use that permalink structure to link your post.

    Reply to this comment »
  31. October 11th, 2009 at 2:37 pm

    [...] làm v?i permalink c?a WordPress ?? ??t ???c m?c ?ích SEO cao nh?t. N?u ??c qua nhi?u blog, b?n s? ???c h??ng d?n ?? ch?n 1 trong các lo?i permalink sau [...]

  32. October 27th, 2009 at 9:41 am
    Don Shapiro wrote:

    Using permalinks for SEO is a good idea because search engines do use the words in the URL for ranking purposes. There is a contrary point of view how to do this from Search Engine News (Planet Ocean) that everyone should be aware of. SEN says that you don’t want the category title in the URL because it adds an extra / mark and makes the URL longer. Spiders look at the number of / you have in your URL. The more you have, the less effective the URL. That’s why they recommend the domain.com/title of post format. Then you only have one / which will improve spidering.

    This is how I do the permalinks on my blogs. I also custom edit the permalinks instead of letting Wordpress automatically configure them from the title.

    Hope this helps,

    Don

    Reply to this comment »
  33. October 27th, 2009 at 6:27 pm

    Thanks for the tip! I’ve been wondering about the best permalink structure for Wordpress. I normally use /%postname%/ only but now I will use /%category%/%postname%/.

    Reply to this comment »
  34. November 9th, 2009 at 3:20 pm
    tips wrote:

    tnx for this usefol tips i change my permalink to %postname% and it looks nice

    Reply to this comment »
  35. November 14th, 2009 at 11:47 am

    Awww ! Nice.. I just put this in my .htaccess

    Reply to this comment »
  36. December 3rd, 2009 at 10:31 pm
    sesligladio wrote:

    sesligladio.com, BU GÜZEL PAYLA?MA ÇOK TE?KKÜR EDER

    Reply to this comment »
  37. December 5th, 2009 at 11:03 am

    te?ekülerimi bir borç bilirim bu i?ten istifade ettim

    Reply to this comment »
  38. December 5th, 2009 at 11:06 am

    Güzel site bundan böle burda tak?lay?m

    Reply to this comment »
  39. December 8th, 2009 at 8:22 am
    arifcorlu wrote:

    arifcorlu sohbet chat odalari

    Reply to this comment »
  40. December 11th, 2009 at 9:20 am

    [...] WordPress SEO Tutorial: The Best SEO Permalink Structure ~ WorPress SEO – [...]

  41. December 14th, 2009 at 12:59 pm
    aks wrote:

    thanks for your tips and suggestion after a long time i read this type of article. thanks again.

    Reply to this comment »
  42. December 18th, 2009 at 5:15 am
    sesligvze wrote:

    sesligvze.com SOHBET MUHABET DU?RU YERDEN DU?RU ADRSTES?N?Z HO?GELD?N?Z BU GÜZEL PAYLA?M ?C?N TE?KKÜR EDER?Z

    Reply to this comment »
  43. January 2nd, 2010 at 10:08 pm
    Kevin White wrote:

    This is brillient. Thanks for this. A great tutorial.

    Reply to this comment »
  44. January 15th, 2010 at 7:24 am

    nice, i like use this permalinks structure /%category%/%postname%/

    Reply to this comment »
  45. January 21st, 2010 at 8:18 am

    ??????????? ???????????

    ?????????????????

    Reply to this comment »
  46. January 23rd, 2010 at 12:43 am

    This is very important for each and everyone of us who are doing SEO for any reasons.

    Reply to this comment »
  47. January 24th, 2010 at 11:42 am
    Alexis wrote:

    What is the best permalink to be in Google News?

    Reply to this comment »
  48. January 25th, 2010 at 12:30 pm
    Pete wrote:

    Try taking SEO in house and saving some money. Good old fashion do-it-yourself. It’s not hard, you just need a little guidance.

    Reply to this comment »
Leave a Comment




(spam protection)
Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

« Previous
« WordPress SEO Tutorials | Up Top | The Best WordPress Blog Title Structure »
Recent Comments
Shalini Gupta: Hey, this is really really nice blog. some new points which we learn wow? Greate dude. I like your...
SEO Blogger: It’s fine as long as they are there :D . The plugin, like many others, probably used the wp_head...
Dev Duff: Hi there, Your wordpress tutorials are very informative. However, I couldn’t find what I was looking...
Micheal Lee: hanks for this. very easy to understand although a complicated topic. much enjoyed, thanks!!
Dolly: Hi, I have follwed the above steps to Redirecting non www URL to www URL through mod_rewrite but its giving...
bert: is there a way to simply rewrite any www domain to non-www domain without having to list the domain name each...
shalini: Wow, thanks for your great information. I am impressed by reading your article. these points are very...
Pete: Try taking SEO in house and saving some money. Good old fashion do-it-yourself. It’s not hard, you just...