thinkphp隐藏index.php

[root@izbp18dv3a3metugyd02qxz ~]# httpd -M|grep rewrite
 rewrite_module (shared)

 

.htaccess

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

 

上一篇:Apache支持Vue router使用 HTML5History 模式


下一篇:Apache配置之URL重写