|
|
Subject:
Is there a program for Unix Web servers that makes URL's case IN-sensitive?
Category: Computers > Internet Asked by: yoelnatan-ga List Price: $8.00 |
Posted:
10 Jul 2004 23:45 PDT
Expires: 09 Aug 2004 23:45 PDT Question ID: 372581 |
On a UNIX Web server, the URL's are case sensitive. For instance, this address has a big "B": http://www.answering-islam.org/Bailey/jihad.html. If you type in a small "b" into the browser address field, one gets a 404 File Not Found Error: http://www.answering-islam.org/bailey/jihad.html. Is there a translation program that one can install on a Unix server that would allow URL's to be case IN-sensitive? Then one would be able to type "B" or "b" and still download the page either way. | |
| |
| |
|
|
Subject:
Re: Is there a program for Unix Web servers that makes URL's case IN-sensitive?
Answered By: caomhin-ga on 12 Jul 2004 08:15 PDT Rated: |
Apache has a module called mod_speling (the spelling is deliberate) which can make URls case insensitive. Getting it working is pretty simple if you're happy editing your httpd.conf file. Firstly you need to make sure the module is being loaded. Looking at the default OpenBSD httpd.conf file you should simply need to umcomment the following line: LoadModule speling_module /usr/lib/apache/modules/mod_speling.so By default it's on line 243 but you may well need to look around for it. Once you're happy the module is loading you can then start enabling the feature for you're website(s). The config option you'll need is: CheckSpelling On Which can be used in a few different ways: - If you want it apply to every website on the server then put it in the Main Server of your httpd.conf - If you want to use it only on some VirtualHosts then you can put the option within the relevant <VirtualHost> tags - If you only want it to apply to parts of a website you can place the option between <Directory> tags or you can also use a .htaccess file providing that "Options All" is set. Some Links ========== Mod_speling documentation: <http://httpd.apache.org/docs/mod/mod_speling.html> The httpd.conf that comes with OpenBSD: <http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/httpd/conf/httpd.conf?annotate=1.17> General Apache configuration documentation: <http://httpd.apache.org/docs/configuring.html> |
yoelnatan-ga
rated this answer:
From what I can gather, the answer is awesome. |
|
Subject:
Re: Is there a program for Unix Web servers that makes URL's case IN-sensitive?
From: forge-ga on 12 Jul 2004 07:40 PDT |
According to NetCraft that site he references is running Apache 1.3.26 forge |
Subject:
Re: Is there a program for Unix Web servers that makes URL's case IN-sensitive?
From: brandboerge-ga on 19 Aug 2004 09:06 PDT |
Hi, I had the same problem and didn't have access to the server, since I was using a remote host. So I made a javascript-based 404-file that converts the URL to lowercase. So when somebody types in the correct URL, but with the wrong cases, this 404-file is called and redirects to the same URL, only in lowercase. A cookie makes sure that it only tries once, then if it is called again you get a file not found-message. In order for this to work, you have to name all files and folders with lowercase letters. You can find the script and an explanation on how to install it on: http://www.forbrugerportalen.dk/sider/casesensitive404-english.htm |
Subject:
Re: Is there a program for Unix Web servers that makes URL's case IN-sensitive?
From: yoelnatan-ga on 19 Aug 2004 11:02 PDT |
Hi, I'm the person who asked the Google Answers question. I'm an intermediary who is just passing the information on to the interested party. Thanks for the responses. If and when I hear back that the answers I received were great advice, I'll give you guys top rating. Right now I haven't heard anything back yet. To me your answers sound great! Thanks! |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |