CheckSpelling On
RewriteEngine on
RewriteCond %{HTTP_HOST} ^([^.]+)\.site\.com$
RewriteCond /home/%1/ -d
RewriteRule ^(.+) %{HTTP_HOST}$1
RewriteRule ^([^.]+)\.site\.com/media/(.*) /home/$1/data/media/$2
RewriteRule ^([^.]+)\.site\.com/(.*) /home/$1/www/$2
CheckSpelling On
(mod_speling)은 www.example.com
일 때 정상적으로 작동합니다. 그러나 Rewrites가 발생할 때 작동하지 않습니다. 예를 들어 /home/test/www/index.html
파일이 있습니다. test.example.com/INDEX.html
을 수행하면 test.example.com/index.html
으로 수정되지 않지만 www.example.com/INDEX.html
(/home/www/
폴더가없는 경우)은 www.example.com/index.html
으로 수정됩니다.함께 작동하는 mod_speling 및 mod_rewrite?
mod_rewrite를 먼저 처리하고 재 작성을 사용하면 checkspelling을 사용하지 않는 것 같습니다. 행운을 빌어 다른 주문으로 모듈을로드하려고했습니다.
이상합니다. 나는 6 개월 전에 일하는 설정을 가지고 있었고, 내가 어떻게했는지 잊어 버렸습니다. 그 이후로 나는 사용자 정의한 것의 50 %를 잃어 버렸습니다. [[ – Brian