[英].htaccess not read on localhost xampp
我有一个问题,Apache没有读取.htaccess文件。 我在我的本地机器上使用它,端口81.我正在使用Windows 10。
我在.php文件的根目录中创建了一个.htaccess文件。 当我在.htaccess文件中输入一些垃圾时,没有任何反应(网站正常加载)。 我检查了许多教程,线程,但无法找到可行的解决方案。
到目前为止我做了什么:
AllowOverride All
(对于目录也是如此) 这就是我在httpd.conf中的设置现在的样子:
#
# 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.
#
<Directory />
AllowOverride All
# Require all denied
</Directory>
我不知道接下来该做什么。 有任何想法吗?
这个部分在httpd.con中是这样的,还是在寻找任何其他文件名?
#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
#
AccessFileName .htaccess
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.