In Express, where do I host sitemap.xml and robots.txt files?

I am just studying Express and trying to determine exactly where to put the sitemap.xml file and the robots.txt file. Do they go to / shared folder? Or are they at the root of my Express application?

Many thanks,

Chris

+5
source share
1 answer

They must be publicly available. publicseems like a good place to do this. These files work because other external services download them from your site. If they are not available, they do nothing.


, , - sitemap.xml . , , /, , xml .

+11

All Articles