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>

posted @ 2022-04-28 01:29  码海无牙φ  阅读(138)  评论(0)    收藏  举报