How to config Tomcat for case insensitive URL?

Viewed 18029

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

2 Answers

A lot depends on whether you use Tomcat or Apache for HTML rendering. 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.

Related