WordPress / health-check

Health Check is a WordPress plugin that will perform a number of checks on your WordPress install to detect common configuration errors and known issues.
GNU General Public License v2.0
174 stars 51 forks source link

Check if a non-virtual robots.txt file exists and show the content #454

Closed Zodiac1978 closed 1 year ago

Zodiac1978 commented 1 year ago

Feature request

First reported here: https://core.trac.wordpress.org/ticket/56595

For high traffic sites, it would be better to have a non-virtual robots.txt file, to prevent PHP/WordPress handling this.

But if we create a robots.txt file it is easily missed that now WordPress is not handling it anymore.

Therefore I suggest adding a check to Site Health if there is non-virtual robots.txt file in the root directory.

Maybe we could also add the content of this file in the info area and/or in the tools section of the plugin.

This could be added as a tool, like the .htaccess viewer and therefore it is better suited for the plugin, than core. Although I hink it should be reported like the changed .htaccess in the info tab.

Clorith commented 1 year ago

Added in 015347b