Issue with robots.txt

Asked by Roch Delsalle

I would like to know If there is any way I can include a robots.txt file at the root of my website.
I have tried different routes settings but I didn't work.
It would be worth adding it to the routing page of the documentation.

Question information

Language:
English Edit question
Status:
Solved
For:
play framework Edit question
Assignee:
No assignee Edit question
Solved by:
Guillaume Bort
Solved:
Last query:
Last reply:
Revision history for this message
Best Guillaume Bort (guillaume-bort) said :
#1

As last route:

GET / staticDir:public

And then put a robot.txt file in the /public directory. It should work.

On Tue, Jan 12, 2010 at 5:48 PM, Roch Delsalle
<email address hidden> wrote:
> New question #97164 on play framework:
> https://answers.launchpad.net/play/+question/97164
>
> I would like to know If there is any way I can include a robots.txt file at the root of my website.
> I have tried different routes settings but I didn't work.
> It would be worth adding it to the routing page of the documentation.
>
> --
> You received this question notification because you are a member of play
> framework developers, which is an answer contact for play framework.
>

Revision history for this message
Roch Delsalle (mnml) said :
#2

Thanks Guillaume Bort, that solved my question.