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…

If you’re new here, you can subscribe to my blog’s full RSS feed to read the latest entries at the convenience of Google Reader or other RSS readers. Thanks for visiting!



Related posts on 

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

24 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 »
  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 18th, 2009 at 11:17 pm
    bikash wrote:

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

    Reply to this comment »
  18. 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 »
  19. 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 »
  20. 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 »
  21. 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 »
  22. [...] 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 [...]

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

  24. 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 »
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
sharon: I like the script you have provided. However, it doesn’t work on the my domain with .us eg, ABC.us...
V.C: So what is the best structure permalink? I like the idea using : index.php/%category%/%postname %
Review Boss: I’m not sure if this Permalink structure is really the best. When you use /%category%/%postname%/...
Rob: I’m going for /%postname%/ on most of my WP sites but can imagine including categories could be usefuk for...
Sayeed: I am using this tip at my site Breaking Jist but what is the “extra SEO benefit” to this?
mesol: One of the latest link building fads seem to be commenting on peoples blogs. Now personally I think this is a...
SEO India: Your details helped me lot .
SEO=my first prioritet: Try also to give the site some incoming links too :)