簡體   English   中英

網站只顯示index.php的所有信息嗎?

[英]site only shows all info from index.php?

抱歉,這是一個基本問題,但是我想知道為什么除非使用index.php擴展名,否則我的網站無法正確顯示。 這是一個例子:

www.copishboutqiue.com/salon

顯示不正確,但

www.copishboutique.com/salon/index.php顯示我們正在使用的正確布局。 當這是根目錄中的唯一文件時,為什么需要使用index.php?

如果您使用的是Apache服務器,請在網站的根目錄中創建一個.htaccess文件,然后添加

DirectoryIndex index.php

暫無
暫無

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

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