• warning: include(includes/diggurls.php) [function.include]: failed to open stream: No such file or directory in /mnt/target03/351357/www.centernetworks.com/web/content/includes/common.inc(1352) : eval()'d code on line 4.
  • warning: include(includes/diggurls.php) [function.include]: failed to open stream: No such file or directory in /mnt/target03/351357/www.centernetworks.com/web/content/includes/common.inc(1352) : eval()'d code on line 4.
  • warning: include() [function.include]: Failed opening 'includes/diggurls.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /mnt/target03/351357/www.centernetworks.com/web/content/includes/common.inc(1352) : eval()'d code on line 4.

Top 3 reasons to use clean URLs

Comments
Forward
Trackback
AddThis

check out our new article about what we learned from being dugg »

I get asked a lot about clean URLs. Most times the question is, "Why should I use clean URLs when building my web app?" And so, with that, I give you the CenterNetworks Top 3 Reasons to use clean URLs when building your web app:

Reason 1: Virality

When you see someone in the street and want to give them a URL inside your site, would you say something like (click the audio for real world example):

  • reviews.cnet.com/4531-10921_7-6648315.html?tag=cnetfd.mt
  • cnet.com/firefox0dayhoax

I am pretty sure it is the latter. It is important that people can speak your URLs where ever possible. Of course it is important to remember that this list is appropriate for those starting out. When you look at a site like CNET that has been around for years, changing their URL structure would be very difficult.

I use the MOM test when creating URLs.... if my mother understands the URL then I go with it.

advertisement - story continues below

Reason 2: Optimization

Search engines like clean URLs. And we all know how important good search engine rankings are. But you will see I did not call reason #2 - search engine optimization. And why? Because optimization of a web site (or its URLs) is more than just for SEO purposes. There are many social bookmarking sites today that only let you save the URL and a description. Wouldn't it be nice if the description was in the URL?

Reason 3: Show Off Your Dopeness

When you use clean URLs you say to the rest of the web apps world, "we know wtf we are doing." Otherwise you could be considered just another geek with a site. Why not be considered cool? Why not be considered dope? Well use clean URLs and you can! And there are no Surgeon General's warnings on the package! Imagine for a second... a T-Shirt that says "got clean URLs?" Would be the hit of the Web 2.0 meetups!

Conclusion

The bottom line is that today it is very easy to create clean URLs. Every web server software can handle them and they help big time. Whether you use Drupal, Joomla, Wordpress, Moveable Type or create your own application, clean URLs have never been easier to use!

One important note - PLAN YOUR URL STRUCTURE - whether you use clean or dynamic - it is imporant to create a structure that will work today and in the future. What you don't want is to run out of usable URLs in the first year of business. Create a plan and reap the rewards.

from Pallieter Koopmans on October 5, 2006 - 3:46am

There are many and it seems to be popular, but I still don't understand why I have not been using it (I did sign up & tried a couple).

from Webdigity - Thoughts on SEO and Web development on October 4, 2006 - 11:24am

Today I read this cool blog post entitled “Top 3 reasons to use clean URLs“.
In my opinion it is not so big difference for the search engines what kind of URLs you use, but it is cool to have clean url structure mostly for your users. For e...

Comments - Add New CommentComment Now
It may take up to five minutes for your comment to appear
Submitted by AndroidIQ on October 4, 2006 - 11:10am.

What ... no mention of
mod_rewrite
?

Submitted by Till on October 4, 2006 - 11:41am.

Mod_rewrite is Apache specific, but yeah, "rewrite rules" in general can do a lot. One should take into account that they can be pretty intense on the serverside.

I heard "talking URLs" are pretty good for SEO as well, anyone got more info on that?

Submitted by Jon Haddad on October 4, 2006 - 12:21pm.
Subject: or MultiViews

The easiest way to do this is in apache is with Multiviews.

Submitted by Todd Stossels on October 4, 2006 - 7:48pm.

Ya! Mod_Rewrite is great; heres an article I found from Google: http://www.allsyntax.com/tutorials/Apache/21/Mod_Rewrite-URLs-for-Search-Engines/1.php

Submitted by Justin Silverton on October 5, 2006 - 12:52pm.
Subject: Mod_rewrite

Mod_rewrite can be used to do many of these things. Great article BTW!

If anyone is interested, I wrote an article on mod_reqwrite a couple of weeks ago:

Mod rewrite tricks

Submitted by Jeff on October 4, 2006 - 11:13am.

nice little comment, but it would have been nice if you had included at least a snippet of the modrewrite rule(s) you are using. :)

PS> are you from NY, Jersey, or neither?

Submitted by centernetworks on October 4, 2006 - 12:14pm.

NYC - Go Yankees!

Submitted by Richard Crowley on October 4, 2006 - 11:25am.

Clean URLs are the future (and should have been the past). While mod_rewrite is nice, I find a different approach to solve this problem and kill one potential server bottleneck: Make your CMS (or whatever exactly you want to call it) write static HTML pages. Only overwrite those pages when the content changes (i.e. a new post or a comment). Since page views are more common than page changes, building the HTML on changes makes more sense than building the HTML on views. Plus you can actually create the nice directory structure that your clean URLs hint at!

Submitted by Anonymous on October 4, 2006 - 11:28am.

Dope. Dope. Dope.

Wow. Excellent use of the word dope. But you forgot other stupid slang. Like, you should use mackin' URLs. And this URL is word to your mother. Or this URL is funky fresh.

:P

Submitted by Anonymous on October 4, 2006 - 1:15pm.

1. When you see someone on the street and want to give them the URL to your site ... it better be a domain name, period. Anything more will be too long/no worth the effort to write down. This is not an argument.

2. Search engine optimization is a complex topic that has a lot more to it than 'keeping clean' your URLs.

3. There are legitimate reasons for using complex URLs, such as backwards compatibility, cookieless sessions, etc.

Really, none of the arguments you present take anything more than aesthetics into account.

Submitted by Happysin on October 4, 2006 - 1:41pm.

You say that like aesthetics don't matter. They matter greatly in the real world.

Also note he explicitly mentioned "Not just search engine optimization" thus making your counterargument 2 worthless.

Submitted by fazi on October 4, 2006 - 7:04pm.

I've been doing this in my website, my first reason is for SEO. I find that creating static page 'html' using dynamic programming langguage are effective. The static page are dynamic but it's still static for user and search engine :)

Submitted by Anonymous on October 5, 2006 - 5:01am.

Hackability is just as important. Predictable, hackable URL schemes invite intelligent re-use of web resources - both for regular web sites and web service APIs. 'Don't make me think', all that. :)

Submitted by Ed Davies on October 5, 2006 - 1:55pm.

...it is imporant to create a structure that will work today and in the future....

Include some of the date in the URL so then you can reorganise and keep compatibility while still keeping the URLs pretty clean. E.g.:

http://www.centernetworks.com/2006/10/top-3-reasons-to-use-clean-urls

Because you only have to be unique within the month you can also abbreviate a bit more:

http://www.centernetworks.com/2006/10/clean-urls

Submitted by centernetworks on October 5, 2006 - 2:48pm.

Ed - I can't say that I disagree with you, but at the same time, I am not crazy about adding the date to a url. To me it can be a good thing and a bad thing... It can make people think "this content is out of date, I am not even going to visit that link" and from that standpoint it is a negative.

Of course your reasoning is very valid as a site grows. I can only hope that CN will eventually outgrow its url conventions. But with n² possibilities, I don't see that happening too quickly.

But I will talk about it with the team to see if it makes sense here.

Submitted by Anonymous on October 5, 2006 - 5:37pm.

Could you setup a system where the url after the domain is actualy a search term? Say I was looking for this article, instead of having to exactly match the url I could enter www.domain.com/clean+url. If there was one match, show it, if more, then show a list of options.

Submitted by Sam on October 6, 2006 - 7:13am.

I have written an article about some ways to make urls beatiful. It's good for newbies, but maybe some pros will find it interesting too.

My site is generally in Russian, but here is a direct link to english version of an article:

http://rmc.net.ru/eng/goodurl/

Submitted by Garamiz on October 23, 2006 - 3:14am.
Subject: url

The url should be short and creative.

Submitted by Sam on October 27, 2006 - 8:27am.
Subject: Link changed

New link is
http://rmc.net.ru/article/eng/goodurl/



Zoho

ShoppingAds
Our Partners

cmplt

OrganicStats
read centernetworks anywhere!
Under The Radar
© 1999-2008 CenterNetworks
Home | News | Reviews | Insights | Interviews | Web Jobs | Press Releases | Startup Tips