The SEO Blogger

WordPress SEO Tutorial: The Best SEO Permalink Structure

THIS SITE IS BEST VIEWED IN FIREFOX.
5th May 2007

WordPress SEO Tutorial: The Best SEO Permalink Structure

Add to Technorati Favorites

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 http://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…

Posted by SEO Blogger in WorPress SEO |

RSS feed | Trackback URI

17 Comments »

2007-05-11 15:38:15

[…] 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 […]

 
Comment by Rich Page
2007-05-29 00:10:35

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

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

 
Comment by Juliaxxx
2007-05-30 10:57:56

Nice post! must say

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

 
Comment by SEO Blogger
2007-05-30 12:41:18

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

 
Comment by K-IntheHouse
2007-07-19 09:01:52

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?

Comment by Jeremy Subscribed to comments via email
2008-08-25 08:26:06

i’m a newbie. and i’m wondering if you made a decision to go ahead with category?
i have some doubts because i frequently attach more than one category to my posts. i would apptreciate your advice.

 
 
2007-08-30 19:12:01

[…] 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 […]

Comment by Jeremy Subscribed to comments via email
2008-08-25 08:22:47

hello. newbie here. i frequently attach more than one category to my posts. would your permalink recommendations work for me? for example would “http://greenassembly.net/category/post-title” pick out the first category alphabetically or what i wonder? sorry if this is a stupid question but i’m frightened of experimenting in case i “break something” and can’t get back! you know what i mean.

Comment by SEO Blogger
2008-08-25 11:58:33

Hi Jeremy,

Yes, WordPress should do that. Also, make sure to have all of your categories ‘pre-determined’, so you don’t change them later; if you do change the category of the post later, make sure to 301 redirect the category slug using “Redirect Plugin” by John Godley of UrbanGiraffe.com. That way you won’t “break” anything/permalinks.

Also, if you didn’t not use the “Post Excerpt Editor” plugin for your category (which will show the post excerpt for each category page), you should only append one post to one category to avoid duplicate content.

Hope that help.

(Comments wont nest below this level)
 
 
 
Comment by omi
2007-10-23 11:57:51

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?

 
 
Comment by ket
2007-11-09 06:39:10

Thanks for your tip,

i have just followed exactly what you have suggested

 
Comment by Jake
2008-02-01 22:31:25

Helps a lot! Thanks!

 
Comment by hossein
2008-07-07 23:06:27

I read this site and it is very greate.
take a look here:
seo toronto

 
Comment by Abi
2008-07-11 16:41:35

Agreed!, i have been using this type of permalink for my blog and it works like a charm. The more keywords in our url the better.

 
Comment by aa
2008-07-17 00:10:31

:lol: :sad: :neutral: :mrgreen: :roll: :lol:

 
Comment by Abi Bakar
2008-07-30 15:37:29

One thing worth considering, before you decide to set this kind of permalink. Make sure you’ve fully aware of the effect. Because each of your post will have 2 address, like this

http://www.blogname.com/uncategorized/my-blog-is-cool

and

http://www.blogname.com/myblog/my-blog-is-cool

Both of the above addresses will redirect you to the same page. I hope it’s not detected as duplicate content by mr.G

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> in your comment.