I'm using a remote host, but they do allow me to create an .htaccess
file. This is my first attempt at using the .htaccess file, and since
it's not working I don't know if I'm doing something wrong.
I'm trying to use the module mod_speling. According to the Apache
website, it's included in 1.3+, and my host is using 1.3.26 (on RedHat
6.2), so it should be available. The only documentation I could find
said to add this to the .htaccess file:
CheckSpelling On
I did this, and uploaded the .htaccess file to the root directory (in
ASCII mode, chmod 644), but it had absolutely no effect on misspelled
pages.
I then tried adding a few lines from the httpd.conf file that were
possibly commented out, but to no avail:
LoadModule speling_module modules/mod_speling.so
AddModule mod_speling.c
CheckSpelling On
The test was to go to
www.mydomain.com/somedirectory/inde.html
(leaving the "x" out of "index"), but I still got a 404. I really
wanted it so that if I typed in
www.mydomain.com/SomeDirectory, I
would be redirected to the all-lower-case directory.
Are either of these added correctly? If so, does this mean that the
module isn't available with my server?
TIA,
Mike
PS, on a similar note, is there a good way to use the .htaccess file
and force
www.mydomain.com/somedirectory to redirect to
www.mydomain.com/cgi-bin/program.cgi?id=somedirectory? My intention is
to use a javascript file to do the redirect from the 404 page, but
that's still going to log an error and may not work perfectly.