doc wont perscribe viagra who can help me to identify if it is real brand cialis buy generic cialis denmark free trial coupon on viagra dgkhan in viagra pakistan viagra to a po box viagra generic brand buying cialis with next day shipping dosages of cialis herbal viagra kardashian current viagra price uk viagra sales viagra clothing avodart online kopen generic viagra caverta generic viagra pillshoprxcom reaction time cialis what happens if you use viagra without ed lasix horse drug buy what if i take propecia every other day viagra and nitric oxide taken together cost cialis walmart nexium dose for gi bleed purchasing viagra in delhi horny goat weed viagra aspirin does viagra give longer erection what happens the first time you take levitra black box warning on viagra hoodia diet pill slimming tab beam to desert burn over the counter product that is as good as viagra horny goat weed better than cialis viagra ipodobne can i take more than 5mg cialis does viagra maintain an erection after coming ephedra diet pills here make cialis work faster chew what kind of doctor perscribes viagra will viagra hurt a girl can i levitra if im on alderol can you get a prescription for metronidazole levaquin buy online similar a levitra vardenafil online shop in uk how many times can a man ejaculate after using viagra himax viagra for sale in lahore viagra do you need prescription london signs a man took viagra viagra austrialia viagra drugs online can get viagra va gnc natural cialis list of substitute of viagra viagra in deutschland celexa withdrawal symptoms how long using half cialis cytotec max dose is levitra fun dosage generic cialis what is the avaerage award for plavix lawsuite levitra eye pressure phertermine diet pills where in cape town pharmacy you buy cialis viagra for man penus cialis per femra lasix drug test mixing viagra and nitroglycerin who sent me cialis viagra soft from england cialis betzahlen mit paypal what is the perpus of cialis cialis insurance plans does viagra help keep erection after ejaculation where to buy nexium iv tell if zyprexa working avis sur cialis how long viagra holds can i make vardenafil cialis buy jakarta what pills will make me hard besides viagra rare side effects viagra alprostadil vardenafil truth about generic viagra forum viagra soft tblet knowledge in urdu strong erection without viagra buy amoxil in uk cialis and idabetes viagra and himax wikipedia indian cialis names cialis price in walmart in nc take viagra before or after eating cialiscost per tablet for 2.5 mg viagra comphaighn cialis prescription is how long does it take for fluconazole to treat thrush gas stations sell viagra buy cialis in new delhi buy zithromax one time dose suspension good and bad side of viagra searchviagra doctors . sacramento ca. what is natural turkish viagra do they work what color is of viagra pill im 16 and i took cialis can viagra make a girl come how old to take viagra of man is there a generic equivalent of viagra cvs 5mg cialis where is strattera available how long you can stay with viagra cialis for people without erectile dysfunction why would a woman take viagra is it ok to take panadol for cialis headache how does extended release metformin work levitra cheapest online do they sell viagra in store exteze mixed with cialis how long generic viagra last united healthcare viagra viagra vs cialis eye problems cymbalta generic yet dapoxetine purchase online will ejaculation end viagra effect long before olanzapine works 100 mg. cialis for 60 cents per pill cut i cut viagra order metronidazole 500 online no prescription misoprostol order online taking extenze with viagra cialis 36 hour vs cialis regular how can you tell if a guy is using viagra cialis pill how do they look how can i tell if viagra is fake what is adalat cc for where to buy viagra over counter with prescription what happens wirh cialis mail order generic cialis tadalafil not internet fda and diet pills viagra half strenght cialis, positioning where in india can i buy montelukast sodium how to use viagra as a senior where can i buy cialis houston tx actresses for cialis how long i8s the patent for viagra is cialis daily different formulation than cialis prn bear ways to get a viagra prescription did generic cymbalta come out cialis no prescription fast viagra fraud where to buy cheap viagra on line finasteride online belgie paxil quitting the drug viagra how know working india viagra suppler cupon viagra powered by jforum generic plavix much does propecia cost what actress is in the cialis commercial levitra stays in sysetem viagra, amlodipine bestl viagra 77429 really liked levitra how much time before should i take levitra lipitor tablets online lexapro cost which viagra is best for me de unde pot procura viagra how to get propecia los angeles fake generic soft cialis india xero grax orlistat cost can i buy cialis at a store cialis super active what is difference between kamagra and kamagra gold generic inderal la information levitra tried woman cialisforbloodpressurecontrol where can i buy clomid in singapore wer to by cialis levitra cost cost walgreens purchase cialis in singapore viagra passo fundo tadalafil directions for use vardenafil rrp australia cost how long cialis effect lamisil at antifungal cream 1 oz for sale what dose viagra samples packs look like sildenafil women cream is it any tadalafil clomiphene cost australia shuangbao acura viagra woman cialis prednisone dosepak singulair generic effectiveness che scadenza ha cialis is their a generic for cialis cialis mambo36 where can i get viagra in perth achat de viagra en suisse avec mastercard laminaria diet pill price of viagra at target viagra clipart how long does intake to get plavix out of system cialis dosage side effects online pharmacy meds cialis cialis dailr reviews does cialis make men horny or just hard what is the best levitra ortiels or viagra orlistat generic alternatives in india seroquel xr daytime where to purchase viagra in delhi can i take two cialis in a day viagra ha una scadenza what does vibramycin do viagra men enchantment esomeprazole online no prescription what plant does sildenafil citrate come from generic cialis approval clomid no prescription supreme suppliers can someone without ed take viagra by viagra amsterdam sildenafil articles cape town viagra bu zyprexa agitation dose sildenafil climax free sample viagra no purchase how much more dht does 5 mg propecia block can viagra cause bleeding how long does it take to erection cialis 5mg takes 8 days to start workin ingredients in sildenafil acyclovir safe use pregnancy why does the price for viagra keep climbing nolvadex for gyno sale struction use viagra spray viagra montreal over the counter interaksi obat sildenafil gi viagra viagra cover by greenshield desogen generic birth control cialisis and marijuana what is the maximum dosage for cialis where can i get a cheap prescription for propecia generic clomiphene citrate cialis ako funguje what is deltasone prednisone for is the viagra they sell in tijuana real levitra for women pills average cost of viagra in nicosia viagra online levitra super active plus cialis immunity online coupons for levitra lilly cialis hard buy viagra super p force mastercard cost of atorvastatin generic buy cialis online with paypal 20 mg cialis or 100 mg viagra lexapro drug recall he tomado levitra is it illegal to bring jelly viagra into dubai how much is ranbaxy esomeprazole uk how many viagra can i take in one day viagra sicher online bestellen how long do azithromycin side effects last viagra for minors cialis good or bad levitra doesn work where can i buy viagra in seattle cipla cialis in india fluconazole how many in a row is it safe to take clenbuterol with lisinopril is bactrim safe for uti with poor renal function provigil cialis second levitra in day n kroatien viagra pineapple with cialis can you take cialis with vicodin buy lipitor online uk inderal buy uk generic lipitor recall symptoms cialis ipertrofia prostatica benigna viagra how do it work ace inhibitors taken with cialis cost of zyvox iv information on itravil diet pill clomiphene pills order on online are zovirax pills over the counter in ireland pros and cons viagra cost clomid cycle where can i get viagra johor bahru non prescription amoxicillin cats cialis is used for viagra with muscular relaxant viagra joint problems how long can your erection last while taking levitra reviews on daily use of viagra can viagra users donate blood cialis does not work what can i do wellbutrin commercial viagra target market viagradenmark viagra professional red is it possible to become immune to viagra canadian tab same as viagra azithromycin 500mg 1pill metronidazole prescription dosage acyclovir ointment cost tab. cialis girlsviagracom viagra spray for delayed ejaculation does erection go down after ejaculation with viagra taking vicodin while on viagra viagra no tell getting viagra kl no prescription pharmacy viagra can you open a doxycycline pill and take the powder abra viagra online levitra program of walmart viagra sales south africa buy viagra in utah and get it that day tadalafil bp clinics that sell viagra in singapore cialis tablete u srbiji where can i buy viagra in store toronto viagra keeping erect after ejaculation prednisone 5 day dose pack for sale finasteride 1 mg for sale is there a generic viagra in australia men erect on viagra after they ejaculate i have used viagra english send viagra watch me dick when i take a viagra does asprin inhibit viagra albuterol tablets without prescription viagra not covered by insurance for women drug drug interactions inderal strattera drug interactions withdrawal cialis and wife levitra helps pe amlodipine and cialis viagra website reviews what is diffence between daily and 36 hour cialis husky cover viagra tipe viagra di indonesia yerba diet pills how to get viagra in orlan xenical diet pills for teenagers is viagra cost going down drugstore to buy viagra in florida fucking a woman using viagra is it better viagra fills seller in uae where can i buy viagra in sydney city diet pill reports registered viagra with paypal tadalafil citrate bodybuilding are sunrise tadalafil products legitimate cialis cheap discount what is orlistat sigma used for cialis generico vendita online patient leaflet for viagra viagra cutting viagra online super active viagra improves masterbation cheapest cialis with prescription generic wellbutrin doesnt work cvs cialis discount coupons viagra fast delivery melbourne cheapest place to buy xenical what happens if you give your dog viagra how long to get an erection after a pill of viagra vand cumpar viagra synthroid full replacement dose viagra names in delhi india buy female viagra in faridabad nitrate with cialis how long does fluconazole take to work oral thush dating a man who take viagra tadalafil for years viagra store location in singapore lcialis black interactions of cialis and nitroglycerin yahoo answers viagra free viagra from walgreens cialis viagra different people can i buy azithromycin in mexico time zyprexa work viagra men free shiping cialis overnight shipment viagra verified by visa can i get viagra by fed ex natural foods that sub viagra effects si pedoren viagra buy metronidazole api for in vivo testing flagyl metronidazole online sildenafil by square company bangladesh how much cipro on mercury drug what dosage of cialis is best i fucked my sister after taking viagra viagra canada no prescription online viagra opens the blood brain barrier propecia hair oil buy does viagra work work with nervous levitra price cvs viagra sales cheapest female viagra tablet name revato viagra forum m cialis and mastur cialis black paypal where to get free viagra is levitra avalable in south africa taking two cialis 5 mg at one time cialis hape pattaya cialis real price can a doctor prescribe cialis for himself the use of levitra professional generic cialis tadalafil com daily .5mg cialis only soft erection how long for withdrawals from propecia to go away what is lexapro escitalopram oxalate high doses of synthroid side effects slovakia levitra map recovery rate with cialis viagra for recreaction viagra women sleep how purchase viagra in japan what auxiliary label goes on lasix buying viagra from company called health man safe how to get best reaults from cialis two viagra pils n one day can i buy viagra in montreal cialis does it really work levitra have tried cialis and didnt work where can you buy viagra in sweden over counter viagra melbourne harm of diet pills smallviagra filmes online dose viagra can i buy clomid over the counter at superdrugsl viagra purchase online in india viagra powerpoint presentations zyprexa toxic dose much does bupropion sr cost ciprofloxacin po dose albuterol tablets for sale uk pure hoodia gordonii plus slimming diet pills cialis from china ireland what would happen if a kid took viagra uses of sildenafil what is best to eat when taking viagra does cialis give u energy long does take cialis take effect viagra online con paypal lexapro withdrawal on generic cvs drug store for viagra price viagra confidence lamisil safe for kids cialis online vendita does viagra affect your future do need prescription disulfiram prednisone canine dose why does viagara or cialis give me a headache sweatpants and viagra will viagra cause high liver what does propecia pill it look like zegra sildenafil tablets dali viagra levitra sold from india zithromax dosage chlamydia 2 piller topiramate post traumatic stress disorder what happens if i take 2 viagra buy doxycycline in thailand how to eat viagra before fucking a girl jon stewart socialist sean hannity viagra does nothing for women drug discount program for escitalopram will cialis increase ejaculate order propecia forum propecia canada online viagra in las vegas without prescription will viagra lower my blood pressure can viagra be take two days in a row can i jack off then take a viagra to last longer zoloft how long to kick in azithromycin dose table zyprexa quickly does work sildenafil mk colombia easy avilibility of viagra buying viagra in penang does crushing viagra make it work faster which one is better viagra or cialis sildenafil citrate assay as per monograph does generic cialis let you get a good fuck cara mengetahui cialis asli seroquel dosage borderline plavix generic for sale in australia how to stay hard without viagra meth how to cure viagra after effects cialis voueher how much for a prescription of zithromax real discount code viagra does medicare or medicaid cover for viagra

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