# How to add our own robots.txt to hugo site

**URL:** <https://discourse.gohugo.io/t/how-to-add-our-own-robots-txt-to-hugo-site/23042>\
**Category:** support\
**Created:** [January 26, 2020, 5:08am UTC](https://discourse.gohugo.io/t/how-to-add-our-own-robots-txt-to-hugo-site/23042 "2020-01-26T05:08:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TenSketch](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/tensketch/32/9006_2.png) [@TenSketch](https://discourse.gohugo.io/u/TenSketch)\
**Post date:** [January 26, 2020, 5:08am UTC](https://discourse.gohugo.io/t/how-to-add-our-own-robots-txt-to-hugo-site/23042/1 "2020-01-26T05:08:23Z")

</div>

Hi

I have a robots.txt sent by my SEO person,

```
User-agent: *

Sitemap: https://www.prabhatha.com/sitemap.xml

```

this page ([https://gohugo.io/templates/robots/#robotstxt-template-lookup-order](https://gohugo.io/templates/robots/#robotstxt-template-lookup-order)) tells us to add our file to static. Which static it is. Under themes or site (root) static?

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [January 26, 2020, 8:44am UTC](https://discourse.gohugo.io/t/how-to-add-our-own-robots-txt-to-hugo-site/23042/2 "2020-01-26T08:44:08Z")

</div>

Root static.

---

<div class="post-metadata">

**Author:** ![TenSketch](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/tensketch/32/9006_2.png) [@TenSketch](https://discourse.gohugo.io/u/TenSketch)\
**Post date:** [January 26, 2020, 9:02am UTC](https://discourse.gohugo.io/t/how-to-add-our-own-robots-txt-to-hugo-site/23042/3 "2020-01-26T09:02:33Z")

</div>

Thank you
