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>

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

猜你喜欢

转载自www.cnblogs.com/Gupq/p/10493819.html