LUREN
V2EX  ›  问与答

将搜索引擎爬虫排除 301 重定向

  •  
  •   LUREN · Dec 20, 2020 · 1325 views
    This topic created in 1995 days ago, the information mentioned may be changed or developed.

    请问是否有一种方法可以将搜索引擎爬虫排除 301 重定向?

    有一些网址需要设置 301 重定向,但不希望影响旧有网址的搜索引擎收录,也就是搜索引擎爬虫可以正常访问旧网址,用户访客访问则跳转到重定向新网址。

    3 replies    2020-12-20 09:34:35 +08:00
    input2output
        1
    input2output  
       Dec 20, 2020
    根据 UA 判断是否需要 30X
    Yourshell
        2
    Yourshell  
       Dec 20, 2020 via Android
    这样做会被认为是作弊吧?
    Ptu2sha
        3
    Ptu2sha  
       Dec 20, 2020
    不用啊 加入 js 跳转代码
    用户正常访问的 浏览器会允许跳转 蜘蛛不会
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2912 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 03:32 · PVG 11:32 · LAX 20:32 · JFK 23:32
    ♥ Do have faith in what you're doing.