簡體   English   中英

Apache2 - 為什么“http://localhost/index”重定向到“http://localhost/index.php”?

[英]Apache2 - why “http://localhost/index” redirect to “http://localhost/index.php”?

我目前的環境是:Debian、apache2 & php5。

當我瀏覽"http://localhost/index"時,會執行"http://localhost/index.php"腳本。

如果我不想這樣做,是否需要更改 apache 的配置? 如果是,我該怎么做?

這是由 apache 的 MultiViews 指令引起的。 請參閱此處的文檔: http://httpd.apache.org/docs/2.0/content-negotiation.html#multiviews

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

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