如何路由到robots.txt?

AnthonyGalli.com

各种消息告诉我,http: //www.anthonygalli.com/robots.txt不存在。

我在public / robots.txt中有一个文件

User-agent: *
Allow: /
Sitemap: http://www.anthonygalli.com/sitemap.xml.gz

如何使路线正常运行,以使错误消失并让Google正确抓取该网站?

斯派克曼

确保您的行中包含以下行config/environment/production.rb

config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章