ThinkPHP5.0 apache服务器配置URL重写,index.php去除

本地环境wamp

 .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 @ 2023-12-17 09:56  小林不会飞  阅读(22)  评论(0编辑  收藏  举报