diff --git a/nginx/redirect b/nginx/redirect.conf similarity index 61% rename from nginx/redirect rename to nginx/redirect.conf index b41750f..97bf4d7 100644 --- a/nginx/redirect +++ b/nginx/redirect.conf @@ -3,7 +3,13 @@ server { server_name SITE_URL; - return 301 https://$host$request_uri; + location /robots.txt { + root FOLDER; + } + + location / { + return 301 https://$host$request_uri; + } } server {