.htaccess case sensitive and mod_rewrite

前端 未结 2 2058
自闭症患者
自闭症患者 2020-12-07 02:22

My .htaccess:

RewriteEngine On
CheckCaseOnly On
CheckSpelling On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUES         


        
2条回答
  •  庸人自扰
    2020-12-07 02:25

    the problem is that rewrite rules ARE case sensitive. So your Rewrite rule should be:

    RewriteRule ^[Bb]log/(.*?)$ /Me/profile.php?username=$1 [QSA,L]
    

    and voila you are fixed.

    mod_speling.so has NOTHING to do with this.

提交回复
热议问题