Changing Character-Casing of URL's?
I like to capitalize words where ever necessary. And I also prefer to capitalize the names of web pages, query strings etc etc.
All our url's look like this:
etc.com/Index.php
and
etc.com/Products.php?Category=CategoryName&SortBy=Date
But, I always get a 开发者_StackOverflowPage Not Found error message if even just one of the character casing in the page name in the url isn't the same as the file name.
We've had quite a few complaints about this too! Some customers prefer to type the full URL - but often forget the casing that is used. Because they're used to websites that use all lowercase characters in URLs.
Normally I'd just change the filenames so they're all lowercase...
Is it at all possible - maybe using some settings in the server or cpanel or something to make it so all URL's are case-*in*sensitive?
You can use mod_spelling.c
It's an Apache module that can handle your problem, so basically you need to enter into your .htaccess
file
CheckSpelling on|off
And make sure that this module is loaded.
You can find more info here: http://httpd.apache.org/docs/2.0/mod/mod_speling.html
精彩评论