viagra prescription email buy flagyl online next day delivery viagra la j famous viagra india muscle aches cialis qtc prologation and cialis paxil weight gain how common how to have multiple orgasims with cialis what doxycycline 500mg is prescribed for prescription walgreen cialis cooper pharma ltd sildenafil playboy radio united states chewable viagra why is viagra better than levitra and cialis herbal viagra sold at gas stations viagra laranja girl manviagra viagra uz alkohol buy nolvadex overnight shipping eliquid viagra how to best use viagra flagyl overdose in dogs is viagra over the counter in victoria australia can you buy viagra over the counter in texas nolvadex show up drug test how is viagra made does doxycycline work for chlamydia in the throat viagra vorzeitiger samenerguss levitra and maca taking arginine with viagra generic versus brand viagra can a phyician prescribe viagra how long does it take on cialis buy quetiapine fumarate canada dapoxetine together with sildenafil does viagra work when you are tired show me a before and after cialis levitra potency lamisil cost tricare how to use vegetal viagra is it easy to get viagra from dr indigestion from cialis cialis 28 tabs 2.5mg tesco buying cialis london can a person take exztene and viagra together role du viagra belight viagra zur verkaufen how to simulate viagra effect viagra online pakistan can i split a viagra pill can i buy viagra in dominican 51 viagra levitra en portugal poor mans viagra natures youth viagra and calis at same time when will cialis cut its prices in nz kamalnv viagra generic flomax not effective prednisone daypack viagra is it for any age levitra works buy cialis in malta will viagra make your penius bigger need viagra london cialis and mdma delay tadalafil risques metronidazole oral cost at walmart what to do about cialis headachs become a sales rep for viagra where do i order generic lamisil mercury drug viagra price viagra every night terbinafine granules dose prednisone overdose warnings chiness women viagra cheapest albuterol inhaler no prescription what happens if i take 40mg of cialis instead of 20mg do they manufacture cialis in the usa difference entre cialis viagra et levitra egypt viagra pfizer viagra cheapest price where to get viagra in a day levitra uzman tv vardenafil effects on women what medicare prescription plans cover viagra do they sell viagra in walgreens prednisone dose for ferrets vardenafil liquid sildenafil jelly thailand cialis kokemuksia online levitra free airmail shipping is it ok to conceive when on cialis can you cut a vardenafil in half where to purchase viagra in manila philippines viagra online purchase in uaee in uae generic levitra 40 mg review neonatal viagra vs nitric oxide viagra effekter buy cialis in uk no prescription cialis and citris best viagra online store cialis vs grapefruit women viagra test cialis 5 mg prijs how long does celexa take to work wellbutrin xl generic recall can you buy viagra in fiji nadi buy viagra in tokyo how long can viagra. keep u erect for buy legit viagra shoot jelly viagra next day delivery of cialis in one day drug facts zoloft and wellbutrin tadalafil rezeptfrei kaufen uk how long before teva lisinopril 5 mg works recommended doses synthroid viagra risperidone buy duro herbal viagra viagra script from clinic how much real cialis in bangkok cialis effect how long lamisil commercial tv viagra for big dick what happens with too much alcohol with cialis do u need a prescription for viagra in australia drug interaction levitra do they have viagra sold in any store in baton rouge macular degeneration and cialis samples for cialis levitra from india how long for 5 mg cialis to begin working viagra for women bangalore generic tramadol sildenafil citrate levitra and grapefriut juice synthroid cost target cialis meilleur fournisseur molecular structure of tadalafil oakville viagra zithromax oral suspension dose pfizer viagra usa should i use viagra for my first time cialis price at costco pharmacy viagra india online buy how it works cialis generic cialis forums how effective is the cialis 5mg can u pay pal buy flagyl over the counter generic cialis blue cross coverage diflucan without prescription at walmarts walgreen pharmacy levitra viagra hurt women how to applay acyclovir cream for place vido clips where to buy levitra in pakistan tadalafil indian name como se usa el viagra buy viagra cialis online south africa how viagra used use of flowmax with cialis what is the dosage and route of lasix where do they sell lamisil for nail levitra kidney function amoxicillin buy walmart viagra availabiliy erectile dysfunction no prescription walmart spray femenino like viagra plavix et viagra orlistat buyers bangladesh sildenafil hair growth viagra and beta blockers and interaction cheap shipping viagra online is outdated cialis safe buy real lexapro online with no prescription is it ok to take viagra while on celexa what happened after taking viagra where you buy cialis in edmonton over the counter asparagus diet pills doxycycline drug interactions day spa san diego finasteride how to buy cialis no prescription wal mart price cialis is cialis safe to use with extenze is generic viagra legal on plane hot to treat reaction to cialis how to stop premature ejacalation cialis how much does olanzapine cost at wal mart doxycycline 3 times a day generic lipitor more expensive quickly does cialis daily work sertraline what is it nexium generic for generic viagra india product names swollen foot from cialis viagra asda prices uk what to do gastritis after doxycycline how much is 90 count 300 mg of gabapentin buspar drug interactions cough medicine for 6 month old albuterol levitra efectos levitra peak lowest price brand viagra burn diet pill t how can you tell who uses viagra how long is the erection with cialis is a whole viagra too much sometimes viagra am i suitable viagra madisan for six will it hurt a woman if she took a cialis clomid and provera no prescription usa only does an erection still last after coming with viagra was ist viagra wikipedia can viagra help premature trim fast diet pill levitra testbericht phizer viagra disocunted world wide why blue cross wont cover cialis over counter viagra malaysia abra viagra china viagra bestellen schweiz viagra frequecy of use what stops levitra from working after a while how to take liquid form of viagra where to buy neurontin in de generic wellbutrin doesnt work lexapro nausea side effect overdose use cialis dont need it best time to take sildenafil how safe is generic levitra purchase thyroxine viagra does nothing for me zithromax price per pill can i buy doxycycline in philippines cialis qt viagra when is it going generic when to consider viagra viagra for sale in birmingham the difference between viagara and cialis strattera generic available where to purchase viagra in lahore how quick does cialis daily work sildenafil citrate from england msds and sildenafil viagra aus uk pearl chemist cialis or ginseng when will generic cialis be available good viagra in qatar dick viagra recommended dose diflucan yeast infection cialis uk with paypal generic lipitor cost no prescription metronidazole pills delay period what are the effects of cialis over dose can viagra mix with alcohol when did viagra come out is it ok to take half cialis should you eat before taken viagra generic viagra pages edinburgh what if cialis raises your blood pressure cialis 30 day free trial daily cialis for less chemical formula viagra is prescription required for viagra in canada is viagra available across counter in cvs ma mg in normal viagra do most insurances cover viagra and cialis viagra run diferent types of viagra cialis and doping viagra is too much how much doxycycline for uti on cialis found blood in my semen viagra chennai price viagra aarp clomid not worked femara not worked pcos what next intrathecal baclofen overdose does regular paxil work better than paxil cr is viagra blue right trough waar krijg je viagra how take time ciprodar to dissapear symtoms how much does a viagra prescription cost viagra good for brain injury jelly viagras does ginkgo biloba like viagra revatio like viagra gabapentin dose high can you able to take viagra twice in a day viagra ireland gel blue cross why 6 cialis 23 days tadalafil and dapoxetine wiki orlistat price online compare viagra prices at major pharmacies any good generic cialis kupim cialis generic what does olanzapine look like cialis black age limit what age do males need viagra herbal viagra at walmart best diet pill to use getting viagra in victoria bc albuterol how many puffs consumer report diet pill sildenafil para q sirve tadalafil novaldex synthroid high dose symptoms discount cialis vancouver buy cialis in perth cialis et vacuum which is stonger viagra or cialis viagra erection after ijaculation levitra price at cvs metformin drug side effects healthyman viagra stern show zyprexa off label use depression dose paxil zaps how long viagra herbal in urdu what happens if a young guy takes viagra quetiapine class of drug is super viagra better nifedipine long work how do i get the doctor to give me viagra cialis for daily use sales alternative uses for viagra her viagra experiences does black ant pills have viagra viagra plus goat weed prednisone 12 day dose pack instructions will you ever be able to get viagra over the counter viagra refills tadalafil identifier cymbalta mg dose lv levitra cialis two girls same time cost for tadalafil at walmart what is the minimum age to take viagra viagra for women gum prednisone tablets what used for cialis innerhalb 24 stunden how many time to viagra give pakistan cardura and viagra cialis interactions with avodart viagra epilepsi whats it like fucking on viagra what is cialis professional generic viagra tablet in uae does propecia worktestimonials cialis 5 mg review does viagra pill look like buy herbal viagra in australia how long is the efect of levitra my valtrex isnt working walgreens cost for levitra plavix 75 mg buy 2 nexium day is there a alternitive to viagra lisinopril generic prinivil cheapest viagra brand over the counter cvs viagra cialis prices, osco buy xenical weight loss finasteride dose hair loss proper use viagra if i take aderall and cialis will fuck a long time what herbal viagra did thekardasians use viagra cheap on line uk cialis analog cant get wood with adderall should i use cialis viagra for men information in hindi sildenafil tadalafil vardenafil comparison does gabapentin work for spinal stenosis pain where to buy viagra over the counter in looking for cialis in south africa viagra aptekas latvija viagra kgr 100 how works discount viagra cialis honolulu hawaii if you ejaculate with viagra where to buy viagra over the counter uk what is cialis cvs were can i buy viagra in south africa very small dose tadalafil does propecia come in a generic cost of nexium packets for infant viagra bankok street orlistat tablets cost bufflo viagra and its uses viagra georgia asia en el sistema socialista viagra uk work cialis enhancement her levitra emea online vardenafil courier shipping lexapro cost more cialis tv commercial cast antibiotics without prescription brazil cialis off brand viagra online cheap india how to take tiger viagra buy viagra in joburg generic tadalafil australia zoloft what time of day to take what dose of prednisone for 4 year old with bronchitis sildenafil online amex hplc validation of the sildenafil oral jelly natural herbs used as sildenafil buyin cialis in the streets of bagkok who take cialis how much do viagra lower blood pressure cialis cost comparison cialis cialis generic viagra from where can i get viagra in chennai cialis bahrain paypal cialis online drug store viagra for my dog in chewables tadalafil generic available us viagra and levitra taken together ingredients of home made viagra method of using viagra spray where can you get viagra from in perth viagra tablets with price tell how viagra works does an erection leave after ejaculation with viagra cialis max. dosage viagra generic tablets viagra root caverta versus viagra buy xenical orlistat online can i tak viagra on airplane take viagra with plavix to buy viagra in holland price for viagra on the street what is prednisone medication used for metformin dosage time day diet pills online no prescription cialis online no prescription canada cialis buy in canada over the xounter amoxil 500 mg whats it for quanto custa sildenafila wanneer einde patent viagra much does finasteride cost uk can i take 2 100mg viagra in the same day no encuentro levitra y dapoxetine diet order pill viagra india case study maxalt migraine generic doxycycline generic brands for my dog buy internet viagra therapeutic dose for lexapro can i take cialis whilst on chemo buy nexium at walmart does viagra help with jet lag zithromax 1 gram oral suspension online order yeast infection pill diflucan affect birth control get harder erections best cheapest diet pill does viagra work better than cialis brand name cialis by lilly no prescription what are the alternatives to viagra in india buy viagra over the counter brisbane buy dapoxetine in usa gdje nabaviti cialis viagra side effects on men gabapentin low dose fine generics viagra meio comprimido de viagra boss royal viagra delivery worldwide thai tadalafil viagra audio torrent a dick before and after of viagra how many erectiosn viagra what stores sales orlistat is there a generic form of viagra women viagra name in india ciprofloxacin how often to take sildenafil zilden effect viagra high price cialis applied directly prednisone dose pack 4mg cialis 28 tablets cena how often should i take my cialis 5mg average cost clomiphene viagra pregnant where to buy safe levitra next day shipping what if you take two levitras blue cross of la cover cialis i have two stunts in heart artries can i use viagra cost of glucophage xr what happen if we take viagra do i need prescription to cross clomid to usa where can buy tadalafil tablets hyderabad can a man on viagra have multiple orgasms viagra using pay pal levitra can use to stop nightfall what does the viagra pill look lie does viagra keep your hero tabs versus viagra cialis order online discount levitra in south africa schedule insert levitra package viagra sanborns is it legal to buy viagra from international pharmacies vardenafil break in half gout prednisone dosage mg for days i am taking viagra everyday

Query string-driven URL schemes considered annoying. (Why you should use path info instead.)

Posted on: May 17th, 2005 4:52 AM GMT

By: Greg Reimer (Code Monkey Extraordinaire)

Topic: tech, web development, programming

Perhaps I should have labeled this one “Query String-Driven URL Schemes Considered Harmful”, but you're not shooting yourself in the head by using query strings, just the foot. Let me start by giving you the high-level, nerd-oriented version of the point, and if you're quick on the uptake or I'm just preaching to the choir, then maybe you can skip the explanation:

Query string dependent URL schemes for content-driven websites reduce the site's signal to noise ratio by burying the semantic value of a URL—the pointer—inside the query string. Specifically, such URLs are less usable to the infrastructure of tools that make the web open and transparent.


A query string dependent URL scheme:

Which contrasts with a path-based URL scheme:

It's tempting to use the former approach because it appeals to our programmer sensibilities. URLs become a parameterized function call. Plus, the more traditional path-based URL schemes smack of "static" websites. It's therefore tempting to use query strings to flaunt the fact that the website is dynamic and not static (God forbid).

Whatever the case, the temptation should be resisted! A URL that references a piece of content, be it a discussion thread, a blog posting, an article, an image, whatever, should look like a regular path-based URL.

Pollution in the ecosystem

Granted, a user sitting in front of a browser doesn't care about URL schemes. But people surfing web pages through browsers is only the end result of a much larger process. On the web, a whole ecosystem exists of spiders, analyzers, mirrors, caches, fetchers, savers, archivers and other tools. Directly or indirectly, these tools extend the broadcast range of the web to a much greater audience. In a nutshell, this ecosystem of tools puts your content in front of users. Google is a prime example.

Query string based URL schemes are like pollution in the ecosystem. Tools don't know how to deal with them. How does a program know the difference between these two URLs for example:

How can a search indexer be sure that if it spiders every query string link on your site, it won't generage an infinite number of variants and use up all its memory? It doesn't. Query string based URLs are a huge field of uncertainty and are often ignored or truncated, which translates directly into into problems for website owners.

The alternative

If you're writing a content management system, be it a blog, discussion forum, wiki or whatever, consider using pathinfo to map URLs to content. If you have a servlet mapped to /blogs, and a request is made to /blogs/phil/posts/5162005.jsp, then the string "/phil/posts/5162005.jsp" is passed to the /blogs servlet as pathinfo. The code to integrate this into an MVC framework almost writes itself. If I were writing a Java-based content management system from scratch, I'd use path based URLs to link to content (e.g. /blogs/phil/posts/5162005.jsp), and I'd use a blended approach for user actions (e.g. /blogs/phil/console.jsp?command=logout). PHP has the same capability. Visit my archive page and click on one or two items to see it in action.

Finally, here are code samples showing how to access pathinfo in both JSP/Servlet and PHP:

// JSP
String pinfo = request.getPathInfo();
// PHP
$pinfo = $_SERVER['PATH_INFO'];

weblog home »
show all posts »

Valid XHTML Valid CSS Valid Atom