Skip to content

How can I return robots.txt ? #2201

Discussion options

You must be logged in to vote

The robots.txt file is a text file and thus not a JavaScript file that needs to be executed. All static files like images, videos or other types belong in the static/ directory. Everything in the static directory is accessible directly. So if you put a file called robots.txt in there, it will be accessible via http://<my-domain>/robots.txt.

You can find more information about static files and Fresh on the Static Files page in our documentation.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@andriiradkevych
Comment options

@marvinhagemeister
Comment options

@andriiradkevych
Comment options

Answer selected by marvinhagemeister
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants