Is there any way to make server ignore the capital letters in address bar? It would be really helpful. :)
Thanks in advance.
Is there any way to make server ignore the capital letters in address bar? It would be really helpful. :)
Thanks in advance.
Could you give an example url? I just clicked through your site and there are no uppercase letters in any of your links.
The only thing I could think of about your question is this: linux servers are case sensitive. So index.html, Index.html, and INDEX.html are three different file names to the server. x10hosting runs completely on linux.
There is a module for Apache, mod_speling that will match requests and files ignoring case (and will 'correct' for one spelling error, ie a request for mipage.html will match the actual file mypage.html). It is not enabled on x10hosting and I doubt that they would enable it (it would break too many things).
The other way, a bit of a hack, would be to use .htaccess to route all requests through a php file, ie FooBar.html would be sent to normalize.php?f=FooBar.html. normalize.php would then look for the file, ignoring case. Then either issue a redirect or include/output the contents of the file. Lot of work.
Easiest is to just make sure all your files are lowercase. Then people will get used to entering URLs in all lowercase and you won't have a problem.
Last edited by descalzo; 07-08-2011 at 08:29 AM.
Nothing is always absolutely so.
i have sign up to a forum (phpfreaks.com) and since at first i have been testing PHP & JavaScript Real-Time Server clock at adress http://cybital.cu.cc/Clock.php, but after that I changed the name several times and return back to original. But I forget to make first letter capital. Since now I have posted both links (with capital and non-capital), I don't want to make trashy server with both filesAnd since my site is still under construction, it would be useful for my future upgrades to it xD.
That's it. However, any help on make one, descalzo, would be appreciated (any tutorial or something. Of course the code itself woulf be ideal, but ...).
Oh, now the right link is http://cybital.cu.cc/clock.php .
Last edited by armin.makovec88; 07-08-2011 at 02:49 PM.
To redirect a request from Clock.php to clock.php:
In .htaccess add:
From now on, make all directories and file names lower case (and do not use spaces in names). Makes life much easier.Code:RewriteEngine on RewriteBase / RewriteRule Clock.php clock.php
Nothing is always absolutely so.
Thanks, it works like a charm.
And yes, I'll keep that in mind xD
Last edited by armin.makovec88; 07-09-2011 at 03:02 AM.