![](/img/trans.png)
[英]Because it only shows the id and not the table info in my 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.