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

我的网站随机重定向到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 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制