各种消息告诉我,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] 删除。
我来说两句