【问题标题】:Nginx rewrite but Facebook doesn't like itNginx 重写,但 Facebook 不喜欢它
【发布时间】:2013-02-05 20:10:49
【问题描述】:

在使用 Nginx 之前,我在重写 url 时使用 Apache,我可以在 Facebook 上共享一个页面,它会将正确的 url 放入共享器中。

现在,使用 Nginx,当我分享 https://www.facebook.com/sharer/sharer.php?u=http://beautifulurl.com/page25 Facebook 时只捕获 http://beautifulurl.com,所以我丢失了完整的页面 url。

我也遇到了 AdSense 问题(在某些页面中它不显示广告)以及 Google+ 共享器。

如何解决?

【问题讨论】:

    标签: facebook url nginx rewrite adsense


    【解决方案1】:

    共享的显示链接将始终显示顶级域,当您单击共享链接时,它将遵循您提供给 sharer.php 的 URI

    【讨论】:

    • 好的,但是标题和描述? :(
    【解决方案2】:

    您是否尝试过替换标点符号:

    https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fbeautifulurl.com%2Fpage25
    

    【讨论】:

      猜你喜欢
      • 2011-07-31
      • 1970-01-01
      • 2018-02-16
      • 1970-01-01
      • 1970-01-01
      • 2011-10-27
      • 1970-01-01
      • 2011-06-26
      • 1970-01-01
      相关资源
      最近更新 更多