Robots.txt

5-15 minIntermediate

Public folder.

Easy Recommended

Static Asset

Server root.

1

Location

1

Place robots.txt in /public/robots.txt of your Strapi installation.

2

It will be accessible at api.yoursite.com/robots.txt.

3

Important: This only affects the API domain. Your frontend site needs its OWN robots.txt.

Verification Checklist

  • /robots.txt