Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 293 Bytes

nginx robots txt.md

File metadata and controls

10 lines (8 loc) · 293 Bytes

how to use nginx to serve your robots.txt file directly

    location = /robots.txt {
       add_header Content-Type text/plain;
       return 200 "User-agent: *\nDisallow: /\n";
    }

See https://moz.com/learn/seo/robotstxt for more options.