Robots.txt And Sitemap.xml


I would like to know, if I would like to upload the robots.txt and sitemap.xml, which location should i be uploading to ?

inside the protected file or outside the protected file?

sorry to ask this question as I’m new to the yii and i just upload my website and wish know more and learn more , thanks

Robots are text files that should be placed in a place that could be crawled. The protected folder is not crawlable as it has .httaccess file with the content below:

deny from all

You should put your file in the root. So for example you can access it through: