apache設定rewrite隱藏掉thinkphp的index.php?
我開啟了rewrite模組
Listen 8888
<Directory />
AllowOverride all
Require all denied
</Directory>
<Directory "E:/wamp64/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options All
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Require local
</Directory>
<VirtualHost *:8888>
#配置访问跟目录
DocumentRoot "e:/wamp64/www/golorryService"
ServerName http://127.0.0.1:8888
</VirtualHost>
哪裡有問題?
http://doc.thinkphp.cn/mobile...
謝邀!
隱藏index.php,應該在你的e:/wamp64/www/golorryService下配置 .htaccess檔
並且你要確認你的apache的httpd.conf(apache/conf目錄下)是否載入 mod_rewrite.so模組
這篇文章可以參考參考 Apache的部分設定