# Wordpress Template robots.txt

**URL:** <https://forum.hestiacp.com/t/wordpress-template-robots-txt/9820>\
**Category:** Community Support\
**Created:** [June 14, 2023, 2:35pm UTC](https://forum.hestiacp.com/t/wordpress-template-robots-txt/9820 "2023-06-14T14:35:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fsgroup](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/f/73ab20/32.png) [@fsgroup](https://forum.hestiacp.com/u/fsgroup)\
**Post date:** [June 14, 2023, 2:35pm UTC](https://forum.hestiacp.com/t/wordpress-template-robots-txt/9820/1 "2023-06-14T14:35:02Z")

</div>

Hi,

Could I suggest a small edit for the default Wordpress nginx template please?

Can we amend the following section

```auto
location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }

```

To:

```auto
   location = /robots.txt {
        try_files $uri $uri/ /index.php?$args;
        log_not_found off;
        access_log off;
    }

```

Without this change, sites that use a PHP-generated ‘robots.txt’ instead of an actual robots.txt file give a 404 error.

Cheers

---

<div class="post-metadata">

**Author:** ![liamgibbins](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/liamgibbins/32/916_2.png) [@liamgibbins](https://forum.hestiacp.com/u/liamgibbins)\
**Post date:** [June 17, 2023, 4:20pm UTC](https://forum.hestiacp.com/t/wordpress-template-robots-txt/9820/2 "2023-06-17T16:20:14Z")

</div>

Hope you made this request through github, it can get missed on the forum

---

<div class="post-metadata">

**Author:** ![fsgroup](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/f/73ab20/32.png) [@fsgroup](https://forum.hestiacp.com/u/fsgroup)\
**Post date:** [June 29, 2023, 9:20am UTC](https://forum.hestiacp.com/t/wordpress-template-robots-txt/9820/3 "2023-06-29T09:20:52Z")

</div>

I haven’t but I will do!
