一.替换规则
-
<IfModule mod_rewrite.c>
-
Options +FollowSymlinks -Multiviews
-
RewriteEngine On
-
RewriteCond %{REQUEST_FILENAME} !-d
-
RewriteCond %{REQUEST_FILENAME} !-f
-
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
-
</IfModule>
替换成
-
<IfModule mod_rewrite.c>
-
Options +FollowSymlinks -Multiviews
-
RewriteEngine On
-
RewriteCond %{REQUEST_FILENAME} !-d
-
RewriteCond %{REQUEST_FILENAME} !-f
-
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
-
</IfModule>
二.伪静态功能未启用
1.httpd.conf配置文件中加载了mod_rewrite.so模块
2.AllowOverride None 将None改为 All
3.重启Apache