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


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

猜你喜欢

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