douhanshu5517 2019-04-29 21:44
浏览 134
已采纳

我的网站随机重定向到RSS feed

While browsing the subdomain of my website (http://camiland.gorilandcomic.com/) for some reason and completely at random (it seems) you get redirected to the RSS feed page of the website (http://camiland.gorilandcomic.com/feed). This, however, doesn't happen in the main domain, even though it's the same website with the same plugins but just different content and colors. My website was made with wordpress, apache, cpanel, html y php. Please help.

I checked the redirect section in cPanel but it's empty, so the problem is not there.

  • 写回答

1条回答 默认 最新

  • dpchen2004 2019-04-29 23:17
    关注

    At first glance it appears to be a CORS issue with the following details.

    This line here

    <meta name="Referrer" content="" />
    

    Gives an error of

    Failed to set referrer policy: The value '' is not one of 'always', 'default', 'never', 'origin-when-crossorigin', 'no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', or 'unsafe-url'. The referrer policy has been left unchanged
    

    This led me tho to the following post here:

    https://moz.com/blog/meta-referrer-tag

    Which explains your issue precisely and why the 'random' behavior is occurring (its not CORS after all). It is occurring whenever you refer someone to the url (ie clicking on it from stackoverflow is a referal; but not when you refresh the page as there is no referrer (ie you didn't come from a link on another site). I suspect that because of your content="" value not being accepted as a legitimate value (see the error message or blog article for proper values) that the browser is guessing it to be <link rel="alternate" which is your rss feed.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 R语言卸载之后无法重装,显示电脑存在下载某些较大二进制文件行为,怎么办
  • ¥15 java 的protected权限 ,问题在注释里