Difference between revisions of "Apache mod speling case insensitive urls issue"

From Brian Nelson Ramblings
Jump to: navigation, search
(Created page with "==Apache Mod_Speling creating insensitive URL's== I have seen it where a customer migrates their website from an Microsoft platform and their urls are not case sensitive and ...")
 
 
Line 26: Line 26:
  
 
Now you should be able to muck up the urls and still access the same content.
 
Now you should be able to muck up the urls and still access the same content.
 +
 +
Learn more http://httpd.apache.org/docs/trunk/mod/mod_speling.html

Latest revision as of 19:49, 1 April 2014

Apache Mod_Speling creating insensitive URL's

I have seen it where a customer migrates their website from an Microsoft platform and their urls are not case sensitive and they need a solution with Apache.

This is where mod_speling comes into play, by default this module is install with most modern apache installations. You will probably just need to uncomment the LoadModules section in your httpd.conf file

vim /etc/httpd/conf/httpd.conf

Locate the following line

#LoadModule speling_module modules/mod_speling.so

and remove the #

LoadModule speling_module modules/mod_speling.so

Tell apache what vhost/server wide

To enable mod_speling (either by Location or VirtualHost) use the directive:

CheckSpelling On

If all you want is case insensitivity use:

CheckCaseOnly On

Now you should be able to muck up the urls and still access the same content.

Learn more http://httpd.apache.org/docs/trunk/mod/mod_speling.html