Cpanel now support the optional apache module mod_spelling using which you can have the optoin for your URLs to load even if they have one spelling mistake or there is one capitalization error, which would give non found 404 otherwise as Linux is cases senstive operating system.

e.g. If you have below URL :

http://yourdomain.com/yourpage.html

Then after installing mod_spelling and enabling it for this domain the below URLs will also open above page :

http://yourdomain.com/Yourpage.html
http://yourdomain.com/yourPage.html
http://yourdomain.com/ourpage.html
etc

And if with one correction the module see more than one options matching the criteria then it will give you option to load any of the available pages.

Below is how you can achieve this.

First run belwow on Cpanel based server :


/scripts/easyapache

And select ‘Spelling’ from the available module list for apache.

Once apache/php are recompiled with this option and easyapache finishes, you can put below code in the .htaccess to apply it to any directory/directories :


< IfModule mod_speling.c >
CheckSpelling On
< / IfModule >

Enjoy !

Tags: , , ,

Leave a Reply