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.

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

报告相同问题?