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>

posted @ 2019-03-29 09:45  Gupq  阅读(231)  评论(0编辑  收藏  举报