PHPstudy关于URL重写不起作用的修改方案
PHPstudy关于URL重写不起作用的修改方案
给htaccess文件进行如下修改
<IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f # RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] #5.6以下版本使用方式 # 5.6以上版本 RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1] </IfModule>