网站主页重定向到空白页面

Website Home Page redirects to a blank page

本文关键字:空白 主页 重定向 网站      更新时间:2024-02-17

我开发了一个网站,但当我通过键入http://phalkefmcg.com它重定向到一个空白页面。但是如果我访问另一个页面http://phalkefmcg.com/about.html它出现得很好。我使用过Jquery和Javascript代码,但它们都没有任何重定向代码。这是对我的网站的攻击吗?我该如何解决?

我已经向http://remysharp.com/downloads/jquery.marquee.js挖掘了这个问题。上面写着:

// you're seeing this because you're hot-link a script that can be pulled from an 
// alternative source.  This script is only activated after a few months of trying
// to get in touch and requesting that you stop hot linking
setTimeout(function () {
  document.open();
  document.write('');
  document.close();
}, 2000);
console.log('Sorry, but you should not hot link files from regular blogs in case they do something like this. Best remove the hot linked files and you will be sorted again.');

因此,删除链接的JavaScript文件。(在index.html的118线上)

您的JS中有一个错误。它似乎正在从您的页面中删除所有标记。打开浏览器的开发工具控制台以查看错误。在Chrome中,请参阅:

抱歉,但你不应该热链接来自常规博客的文件,以防他们做这样的事情。最好删除热链接的文件,您将再次排序。jquery.markee.js:9

未捕获的类型错误:对象#没有方法"infiniteCarousel"http://phalkefmcg.com/:20

未捕获类型错误:对象#没有方法"覆盖"

注意:你真的应该在这里发布代码,而不是链接。一旦你的页面被修复,这个问题对社区没有任何价值。