Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to config Tomcat for case insensitive URL?

I need URL to be CASE-INSENSITIVE in Tomcat. I mean when I write in browser's address bar for example 'http://localhost/index.htm' is not equals 'http://localhost/INDEX.htm' and then i get error because this page(INDEX.htm) there isn't. how i can config Tomcat6 for case insensitive URL? Thank you

like image 612
HFDev Avatar asked Aug 07 '12 09:08

HFDev


People also ask

How do I make Tomcat case insensitive?

You can configure Apache 2.4 to render HTML and delegate JSP to Tomcat. In this scenario, you can configure Apache to be case insensitive. See this link: Usually jsp pages are referenced by links, so the developer controls the case of the URL.

Are URL cases insensitive?

Google's John Mueller clarifies that URLs are case sensitive, so it matters whether the characters are uppercase or lowercase. Variations in cases can make one URL different from another, similar to how a URL with a trailing slash is different from a URL without the slash.

Is Wordpress URL case sensitive?

URL's are not case sensitive. No matter how you type the domain with all caps or whatnot, it'll still go to the same place.


1 Answers

It is possible in Tomcat 6 and earlier, but not recommended. Refer this Link from apache documentation. Search for caseSensitive. By default it is true

like image 59
Harsha Herle Avatar answered Sep 28 '22 19:09

Harsha Herle