LUREN
V2EX  ›  问与答

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

  •  
  •   LUREN · Dec 20, 2020 · 1327 views
    This topic created in 1996 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   ·   5541 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 08:40 · PVG 16:40 · LAX 01:40 · JFK 04:40
    ♥ Do have faith in what you're doing.