Jun 10

Does URL Parameter Order Matter?

Posted by Jaimie Sirovich on Jun. 10th, 2006. 2 comments — voice your opinion.

NEED A GREAT WEB SITE? NEED IT TO BE SEARCH-ENGINE-FRIENDLY?

SEO Egghead is a web development firm dedicated to creating custom, search engine optimized web site applications. We specialize in eCommerce and content management web sites that not only render information beautifully to the human, but also satisfy the "third browser" — the search engine. To us, search engines are people too. Click here to talk to us. We'd love to help!
X

This is a question I'm currently researching. I have never looked into it before, because I haven't really used dynamic URLs for anything visible to a search engine recently; I always use mod_rewrite these days.

The question goes as follows:

When designing a dynamic URL and constructing it by hand (something I never do, but many do; using a function to make URLs will achieve a better level of consistency),  and number_of_parameters >= 2, you have n! choices for order.  Granted, for 2-3 parameters, that's only 2 or 6 permutations respectively, but are these the same?

"?a=1&b=2"

"?b=2&a=1"

It's actually an interesting question.  The RFC does not say anything about this, and for most intents and purposes I'd say they're the same (for most applications), but the application has access to the query string as is, and can act differently and accordingly.

More interestingly, in PHP, you can use [] (encoded, of course) in a URL to successively add values to an array.  In that case, for sure the answer is that we cannot assume parameter order doesn't count.  For example (unencoded for clarity) ?a[]=1&a[]=2 is definately meaningfully different than ?a[]=2&a[]=1.

So if we're not consistent, can it yield duplicate content?  I'm not sure, but leaning toward yes.  Anyone care to comment?  I would hope that search engines would try to fix it, but I've never heard anyone speak about it. 

The same concern would apply to capitalization, though I'm a bit more optimistic about search engines being able to figure that out, because it's algorithmically simpler to do so, and a more prevalent problem (thank you Microsoft!).

These questions are important, as I need to verify the answer for something I'm writing.  If anyone knows, please comment :)  Obviously, the answer may vary by search engine.  I may actually design a testcase and post it online to see how it gets spidered, or mine existing sites for data by looking for one with this "design problem" and seeing what the big three search engines do.

Tell an amigo:
  • Sphinn
  • Digg
  • Reddit
  • del.icio.us
  • StumbleUpon
  • Facebook



Related posts:
Doesn't Matter if You're Black or White I was just thinking that it really bothers me that...
Chapter 3 Teaser: Provocative SE-Friendly URLs I've been feverishly working to meet deadlines on the seo...
6 Questions To Weed Out Charlatan SEOs. Make Suggestions … There are a lot of idiots charlatans still out there...
Influence of a tilde, ~, on a Link's Value I have never gotten an authorative answer to this question,...
Book Preview: Introduction To Chapter 1 Posting has been a bit erratic.  But I haven't been...




"2 Wise Comments Banged Out Somewhere On The Internet ..."


Colyn

Did you ever get a definitive response to this outside this forum? I'm very interested in knowing myself and haven't found any good information about it anywhere on the web so far.

SEO Egghead » Blog Archive » URL Normalization; Slashing Duplicate Content

[...] To be honest, I'm not even sure this matters much anymore, but I thought I'd mention it.  Like the issue with parameter ordering (?a=1&b=2 vs ?b=2&a=1) I mentioned here, a slash at the end of a URL can pose a similar ambiguity problem.  Fortunately, at least for non-rewritten pages, Apache takes care of this issue.  If the resource is a directory, it gets 301-redirected to the-url/, and vice versa. [...]



Care To Bang On The Keys ... ?

BECOME AN EGGHEAD. SUBSCRIBE TO OUR RSS FEED!

Learn to be as nerdy as we are by never missing our latest blog entries. Receive great tips, tricks, and ideas on improving your web site every day! Subscribe via our RSS Feed or use the chicklets in the sidebar.