ThinkPHP/—隐藏index.php

vhosts.conf

<VirtualHost *:80>
DocumentRoot "E:sasa"
ServerName sasa.cn
ServerAlias sasa.cn
<Directory "E:sasa">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>

 

 

ThinkPHP/---隐藏index.php

.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>

相关文章