.htaccess FollowSymlinks影响rewrite功能

Thinkphp的框架的根目录的.htaccess是这样写的:

<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>

我尝试写一个自己的mvc框架的时候用的是
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
没有前面的
+FollowSymlinks
然后只能访问http://localhost/mvc/index.php/user/show
不能去掉中间的index.php
http://localhost/mvc/user/show 我也想这样访问,像TP一样隐藏index.php原来加上这一句就有隐藏index.php的功能
原文地址:https://www.cnblogs.com/as3lib/p/9772774.html