• 请不要在回答技术问题时复制粘贴 AI 生成的内容
ttgo
V2EX  ›  程序员

无法正常在 facebook 分享 github pages 的链接

  •  
  •   ttgo · Apr 24, 2020 · 1363 views
    This topic created in 2216 days ago, the information mentioned may be changed or developed.

    我的网站是通过设置 cname 放在 github pages 里的,

    但是无法正常在 facebook 里正常分享页面的连接。

    假设我域名是 aaa.bbb ,

    我在 facebook 分享 https://www.aaa.bbb/c 的话, 链接下面的预览会提示:

    Pages not found・Github Pages
    If this is your site, make sure that the filename case matches the URL. For root URLs (like http://example.com/) you must provide an index.html file.
    

    把链接改成 https://www.aaa.bbb/c/index.html 的话,预览也是同样的提示,

    然而在浏览器里加不加上 index.html 都可以访问啊。

    感觉似乎应该是 facebook 在连接后面加的那一串儿 fbclid=xxx 造成的吧?

    请问,有人知道如何解决么??

    3 replies    2020-04-24 20:14:09 +08:00
    ttgo
        1
    ttgo  
    OP
       Apr 24, 2020 via iPhone
    v 站真 nb 啊,刚刚在谷歌找答案,就搜到刚发的这个帖子了,光速收录啊
    miaomiao888
        2
    miaomiao888  
       Apr 24, 2020
    谷歌:是我收录的为什么不夸我
    ttgo
        3
    ttgo  
    OP
       Apr 24, 2020 via iPhone
    自己找到原因了,og:url 的设置在转向中出了问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2917 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 14:49 · PVG 22:49 · LAX 07:49 · JFK 10:49
    ♥ Do have faith in what you're doing.