tp3.2路由无效去除index.php且apache开启伪静态规则

tp3.2路由无效去除index.php且apache开启伪静态规则

 


    
        Options -MultiViews
    
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    #RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]    //phpstudy无效
    RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L]

 

你可能感兴趣的:(yii2)