vps上无法隐藏index.php

浏览:363 发布日期:2016/08/30 分类:求助交流
已经按照手册上的3步做了
1:加载了mod_rewrite.so模块
2:AllowOverride None 已经将None改为 All
3、已经在在应用入口文件同级目录添加.htaccess文件,内容如下:
<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>

用的是centos7.2 apche版本是 2.4
最佳答案
评论() 相关
后面还有条评论,点击查看>>