重定向到 /cgi-sys/defaultwebpage.cgi

Redirected to /cgi-sys/defaultwebpage.cgi

我在目录下有一个 cpanel 帐户:

/home/username/

和一个文件位于:

/home/username/public_html/

index.php

其中包含:

<?php
header("Location: https://www.facebook.com/.../");

我正在使用 CentOS 服务器,直到今天它都运行良好。但是现在它将我重定向到(默认网站页面):

username.com/cgi-sys/defaultwebpage.cgi

我无法弄清楚是什么原因造成的。

我认为您的 cPanel 帐户设置存在问题,由于您的站点未显示 /home/username/public_html/ 目录中的内容,可能是站点 IP 或 DNS 配置错误,请尝试使用 temp URL 检查您的站点并检查它 (http://Server_IP/~username/)

如果您的域使用 https,请检查您的证书是否有效。可能是您在共享 IP 地址上安装了 SSL 证书。