![](/img/trans.png)
[英]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.