Routing to a static file in the game! structure 2.0

For SEO purposes, I am trying to make some files accessible from url, for example http://example.ca/robots.txt , but I ran into some strange problem. Files are accessible using firefox, but Chrome and Google bots cannot get these files!

my routes:

# Map static resources from the /public folder to the /assets URL path GET /assets/*file controllers.Assets.at(path="/public", file) # Robots and Humans files GET /$file<(robots|humans).txt> controllers.Assets.at(path="/public", file) GET /$file<MJ12_576CD562EFAFA1742768BA479A39BFF9.txt> controllers.Assets.at(path="/public", file) 
+7
source share
1 answer

I'm not sure if this will make a difference, but try:

 GET /robots.txt controllers.Assets.at(path="/public", file="robots.txt") GET /humans.txt controllers.Assets.at(path="/public", file="humans.txt") GET /MJ12_576CD562EFAFA1742768BA479A39BFF9.txt controllers.Assets.at(path="/public", file="MJ12_576CD562EFAFA1742768BA479A39BFF9.txt") 
+19
source

All Articles