CheckSpelling On
RewriteEngine on
RewriteCond %{HTTP_HOST} ^([^.]+).example.com$
RewriteCond /home/%1/ -d
RewriteRule ^(.+) %{HTTP_HOST}$1
RewriteRule ^([^.]+).example.com/media/(.*) /home/$1/data/media/$2
RewriteRule ^([^.]+).example.com/(.*) /home/$1/www/$2
The CheckSpelling On
(mod_speling) works fine when it’s www.example.com
. But it does not work when the Rewrites take place. For example there is a /home/test/www/index.html
file. If you do test.example.com/INDEX.html
it will not fix to test.example.com/index.html
but if you do www.example.com/INDEX.html
(there is no /home/www/
folder) it will fix it to www.example.com/index.html
.
It seems like it processes through the mod_rewrite first and if it uses rewrite, it doesnt go through checkspelling. I have tried loaded the modules in different orders with no luck.