V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Tornado Documentation
http://www.v2ex.com/tornado/
Tornado on GitHub
https://github.com/facebook/tornado/
Tornado Gists
http://tornadogists.org/
mkeith
V2EX  ›  Tornado

Tornado 怎么设置robots.txt的url映射啊?

  •  
  •   mkeith · 2013-01-19 11:46:01 +08:00 · 4663 次点击
    这是一个创建于 4108 天前的主题,其中的信息可能已经有所发展或是发生改变。
    (r"/robots.txt", index.RobotHandler),
    (r"/robots.tx", index.RobotHandler),
    (r"/robot.txt", index.RobotHandler)

    这几个url就是/robots.txt没法访问
    1 条回复    1970-01-01 08:00:00 +08:00
    mkeith
        1
    mkeith  
    OP
       2013-01-19 12:10:19 +08:00
    已解决 直接把robots.txt扔到static目录下就好了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2778 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 12:08 · PVG 20:08 · LAX 05:08 · JFK 08:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.