[英]how to make ovh run my website from index.html and not index.php?
[英]How do I run index.php in a private folder from index.html
我有一個網站,其根HTML位於index.html。 我想將index.html重定向到上面一個父文件夾中的私有文件夾中的php文件,以運行index.php。 然后,此文件將根據請求呈現所需的html內容。 我將如何處理從index.html獲取index.php的過程。 文件結構如下所示:
private/
-index.php
public_html/
-index.html
嘗試在index.html中使用此元代碼
<meta http-equiv="Refresh" content="0; url=/private/index.php">
實際上,這是一個html重定向。
如果這不起作用,請嘗試掛接htaccess
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.