I'm using a case-sensitive web application to serve a few URLs that will be printed, so we expect UsErs to type them with inexact case. How do I tell mod_rewrite to redirect to the correct case URL as in [NC] without also redirecting on the case-exact URL and creating a loop?
| |||
|
feedback
|
|
This depends on a few things in your web application, but you could:
In .htaccess:
| |||
|
feedback
|
|
First off, if you can use mod_speling that's easiest, but that requires actual files, not stuff hiding inside an application somehow. Simply set a condition so the rewriterule doesn't happen if the request is capitalized properly, like so:
| |||
|
feedback
|
|
Mount a Samba share to /var/www and consider the Samba-share folder your wwwroot ;-)) | |||
|
feedback
|