簡體   English   中英

.htaccess無法在localhost xampp上讀取

[英].htaccess not read on localhost xampp

我有一個問題,Apache沒有讀取.htaccess文件。 我在我的本地機器上使用它,端口81.我正在使用Windows 10。

我在.php文件的根目錄中創建了一個.htaccess文件。 當我在.htaccess文件中輸入一些垃圾時,沒有任何反應(網站正常加載)。 我檢查了許多教程,線程,但無法找到可行的解決方案。

到目前為止我做了什么:

  • 輸入.htaccess文件中的任何內容來檢查或500錯誤(不起作用)
  • 檢查httpd.conf文件中的AllowOverride All (對於目錄也是如此)
  • 重新安裝Xampp

這就是我在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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM