wordpress-logo.png

WordPress is, you might already suspect it, the most popular blogging platform aka blog CMS out there. Thee are plenty of good reasons to use it although WordPress has some major drawbacks (it’s bloated, can be easily hacked, has a super-ugly admin interface etc). Nonetheless I use WordPress for more than one blog, indeed I use WordPress since 2003 for numerous projects.

WordPress lets you change your URL structure with ease. That’s nice but also there are some pitfalls.

Why should you rewrite your URLs in the first place?

  • to make them readable and self explanatory
  • to make them Google friendly
  • for better archiving

Now said that there is no one way to do that. There is no ideal URL structure for WordPress. It depends on what you need.

Just think about how you use your WordPress installation:

  • as a blog (most probably but not necessarily)
  • as a website
  • as a news source
  • a an archive or library for real or metaphorically speaking

Now there are several ways to “design”, as in so called URL design, your WordPress URLs. After years of practice my favorites are…

Stop, first I want to show you what the average WordPress URLs look like:

  1. domain.com/?p=123
  2. domain.com/category-name/seo-2-0-basics-wordpress-url-design/
  3. domain.com/2008/03/15/seo-2-0-basics-wordpress-url-design

None of them are perfect, most of them have significant drawbacks.

#1 is short, no need for “tinyurl” services and it does not use any rewrite rules. I like that in some cases, for instance for blogs that have large numbers of short posts, then you can show off by having a four or five digit post number. It tells you nothing about the content though. Imagine this link in an email. Would you click it or rather a link like that: domain.com/britney-spears-naked

#2 lets you categorize your content but as WordPress categories do not work as desired, you can’t really choose which category is the most important one if you ascribe more than one and WP will almost randomly choose one, it’s worthless. Also, the “/” at the end mimics a directory which a post is not. Do you really want to trick your readers you dirty black hat SEO?

#3 is great for a historical view bu most blog readers expect current posts on a blog. Do you really think someone will click on a link like domain.com/2005/03/15/breaking-news ?

Now lets take a look at my own URL:
domain.com/seo-2-0-basics-wordpress-url-design

I love simplicity and I wanted my blog to appear to be a real website with real content not just ephemeral blog postings. It is not ideal for several reasons or rather purposes though.
Let’s say I make a list of 10 items and the add some more. I can’t change the URL though, as it would yield a 404 not found error n the old one.

Consider this URL again: domain.com/?p=123
Now changing the headline does not have any impact on it. Now wouldn’t it be great to combine these two? Yes, as I am a man of “as well” instead of “either or” you can and should.

The solution is fairly simple:
domain.com/123/seo-2-0-basics-wordpress-url-design

This URL has a major advantage:

Long URLs send via email often get cut at the end or otherwise destroyed in the process of sending.

It does not matter with this one.

  • domain.com/123/seo-2-0-basics-wordpress-url-design
  • domain.com/123/seo-2-0-basics-
  • domain.com/123/seo-2-0-basics-%FC%DF%F6%E4
  • domain.com/123/
  • domain.com/?p=123

will all successfully lead to the same post.

Unfortunately this is not enough in many cases. As Google is quite stupid and does not know you are a blog unless you call yourself a blog you might want to use

domain.com/blog/123/seo-2-0-basics-wordpress-url-design

or better, if you want to rank for the often searched for keyword+blog combination:

domain.com/seo-blog/123/seo-2-0-basics-wordpress-url-design

You can achieve this either by uploading your WordPress installation into the real “blog” or “seo blog” directory on you server via FTP or by rewriting again. WordPress lets you add a so called “category_base”.

Many people still want to use the date in their URLs as they write news blogs and for better archiving. You do not have to fake three directories with slashes (“/”) doing that.
When I want to retain the date I use either one of these two URL structures:

domain.com/20080315
or
domain.com/2008-03-15

Also

domain.com/2008.03.15
is possible.

WordPress will still allow you to access the years as in “domain.com/2008″, months or days.

Now you still have to decide which URL or Permalink design is the best for you.

The implementation of the desired URL structure is shown here at Wordpress.org or here with some screenshots.

There are also some dirty tricks as I like to call them ;-)

For instance you can any suffix after the URL. So instead of the good old “.html” or “.php” yo can add anything you want. In my case something like “.seo” would be perfect.
domain.com/seo-2-0-basics-wordpress-url-design.seo

Related posts:

  1. Top 10 Fatal URL Design Mistakes
  2. 7 Stealth Publish for WordPress Uses to Consider
  3. Saturday Night Fever for WordPress Theme Customization: How to Simplify
  4. Quit SEO, Use Wordpress
  5. Top 10 URL Design Failures of Famous Websites

March, 2008 | You can follow comments through the RSS 2.0 feed. You can leave a comment, or trackback.

This thing has 17 Comments

  1. ElectroGeek (2 comments.)
    Posted March 17, 2008 at 3:12 pm | Permalink

    I am using WordPress 2.3.3 with the Date and Name based permalink structure setting with good results. I have been using this format from day one. Because it uses the actual post title to build your link it definitely helps get you noticed in the search engines as long as the title of your post appropriately corresponds to the content of the post. There are plugins that can be used for SEO with WordPress but I have decided not to mess with success. Regards, ElectroGeek

  2. onreact (641 comments.)
    Posted March 17, 2008 at 7:32 pm | Permalink

    I’m not sure you really read my post. Also SEO 2.0 is not only about SEO but also about usability etc. It’s a wholistic approach.
    Click this URL to realize the drawback of your URLs:
    http://electrogeek.com/blog/2008/03/16/commentluv-wordpress-plugin-increase-traffic-bad-for-ad-sales/

  3. Nick (3 comments.)
    Posted March 22, 2008 at 12:00 pm | Permalink

    Some really cool ideas here Tad. Never really considered adding additional words to the url. What are the advantages of google knowing that your website is a blog? I never thought it made much difference…

  4. onreact (641 comments.)
    Posted March 24, 2008 at 7:25 pm | Permalink

    Good question Nick. In fact many people find me via Google Blogsearch searching for, unsurprisingly “SEO”. Also many people look for keyword+blog combinations like green blog, car blog, SEO blog. Google Blogsearch results are to be added to Google Universal search etc.

    Adding words to the URL is indeed not widely used but often URLs end up changed by sending or two different character sets.

    Consider this:
    Visit our
    domain.com/page.html,…

    It’s an error in most cases, not the above version though.

  5. lord marn (1 comments.)
    Posted March 28, 2008 at 12:26 pm | Permalink

    Usualy i use domani.ext/category/postname.html

    Imho is the best perman link

  6. George Jr (2 comments.)
    Posted May 22, 2008 at 11:37 am | Permalink

    I use normally domain.com/123/seo-2-0-basics-wordpress-url-design

    and it helps in search engines as well , what do you say

  7. Merfilin
    Posted June 5, 2008 at 3:41 am | Permalink

    According to a press release from SoftBank Mobile, the Japanese service provider has secured an agreement with Apple to bring the iPhone to Japan this year. The deal will ensure the iPhone’s first official access in Japan’s market.

  8. yuri (1 comments.)
    Posted August 20, 2008 at 8:21 pm | Permalink

    http://www.tomrafteryit.net/boost-search-engine-optimisation-seo-using-permalinks/

    have set my Permalinks to /%postname%/ because that structure gives the maximum SEO benefit

    ;)

  9. Busby (3 comments.)
    Posted November 29, 2008 at 5:49 am | Permalink

    I like this permalink better :
    domainname/postname.htm
    instead of only postname, I add .htm at the end.

  10. Toni (1 comments.)
    Posted January 20, 2009 at 9:27 pm | Permalink

    Hi,

    Could I ask you the favor of replacing the WordPress logo in your post with an official one from http://wordpress.org/about/logos/ ?

    The logo you are using has the wrong proportions. Given that this post is the #1 result for a Google image search for WordPress, it would be great to have it show the correct image. Thank you!

  11. onreact (641 comments.)
    Posted January 21, 2009 at 5:06 pm | Permalink

    Yeah, thanks for the tip. I’ll change that soon.

  12. Bobby D (1 comments.)
    Posted January 28, 2009 at 9:17 pm | Permalink

    In my experience this whole article is pretty moot, as the priority placed upon domains and URL strings is MUCH lower than many other search engine impacting factors involved in the structure of your site.

    Anyway you look at it, though, if you manage your category names well enough that you’re writing is contextually relevant, you should have no need to modify the permalinks in WP at all. The best thing you can do for your blog or website to optimize it for Search Engines is write relevant content that acts as link-bait. Everything else should fall into place after that.

    Also, I must be honest; the admin panel of WP2.7 is really nice. I mean, it could be worse… you could be using Drupal.

    Also, could you speak further to the points you made about WP being bloated and vulnerable to security attacks? I’d like to know you made both of those statements in the first paragraph and didn’t back them up with any evidence in the article.

  13. James (1 comments.)
    Posted February 3, 2009 at 9:12 am | Permalink

    I agree with Bobby D regarding the new admin panel. I love using it. Here is the official WP permalink guide, which I successfully used today: http://codex.wordpress.org/Using_Permalinks

  14. anon (1 comments.)
    Posted June 26, 2009 at 6:19 am | Permalink

    Please tell me, ¿What is the better /%postname%/ or /%postname%?, thank you.

  15. anon (7 comments.)
    Posted August 26, 2009 at 1:36 pm | Permalink

    this is good article.. i like it.. i usually just use /%postname%/

    and for anon, why using /%postname%? ??? for?

  16. ElectroGeek (2 comments.)
    Posted January 7, 2010 at 4:48 am | Permalink

    @onreact Here is the corrected url:
    http://electrogeek.com/blog/2008/03/16/commentluv-wordpress-plugin-increased-blog-traffic-bad-for-ad-sales/

    That one works.

  17. onreact (641 comments.)
    Posted January 7, 2010 at 11:43 am | Permalink

    Exactly, but there is only one letter missing in my version of your link and it already gets “not found”.

    In contrast when using a number you can write any text behind it and the link will still work.

Post a Comment

Please mind the commenting netiquette, most notably:

  • A "name" is a real name or nick name, not a keyword! SEO Company is wrong. John Doe of Google is OK.
  • For the "website" URL: No deep links allowed unless it's your "about" page.
  • No extra signature allowed, one "website" link is enough.
  • No bot-like "Thank you" comments with no context or added value to the post.

Your email is never published nor shared. Required fields are marked *

*
*