apache .htaccess配置去掉index.php
作者:互联网
httpd.conf增加
LoadModule rewrite_module modules/mod_rewrite.so
.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>
标签:index,php,rewrite,REQUEST,FILENAME,htaccess,apache,RewriteCond 来源: https://www.cnblogs.com/banbanxdl/p/16201315.html