If I have two URL's where the only difference is the case of the query string:

  • http://example.com?param=TEST

  • http://example.com?param=test

Are they both considered equal by search engines? I know the rest of the URL is case sensitive but I want to confirm that this is also true of the query string.

2 Answers 2


URLs that differ in case in the query string are different URLs to search engines. They are not considered equal and would need canonical tags or redirects to tell search engines which you prefer.

Different parts of the URL are different in terms of case sensitivity:

  • Protocol (http) -- case insensitive
  • Host name (example.com) -- case insensitive
  • Path (/folder/document.html) -- case sensitive
  • Query string (?foo=bar&fuzz=bat) -- case sensitive
  • 3
    Percent encoding is case insensitive, i.e. %7e and %7E are equivalent. The preferred form is uppercase. All of the rules on what is or is not case-sensitive are in RFC 3986. Jan 7, 2016 at 21:34
  • It is true that percent encoding is case insensative, although I'm not sure if search engines handle that correctly. My guess is that a canonical tag would help for SEO in that case. Jan 7, 2016 at 21:37
  • I'm pretty sure that Google has got it right. I can't say anything for any other search engine. Jan 7, 2016 at 21:39

Yes, all parts of URL after the domain name are case sensitive.

Also, query string case is important not just for search engines but it may be important for your server as well.

You may have the following download link:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.