Opened 6 years ago
Closed 6 years ago
#5396 closed defect (bug) (fixed)
Direct requests to header.php and footer.php should return an x-robots-tag HTTP header
| Reported by: | jonoaldersonwp | Owned by: | |
|---|---|---|---|
| Priority: | lowest | Milestone: | |
| Component: | General | Keywords: | seo |
| Cc: |
Description
For templating reasons, header.php and footer.php are able to be directly requested (on any path; e.g., https://wordpress.org/footer.php, https://wordpress.org/plugins/wordpress-seo/footer.php).
When these files are accessed directly, they should set an x-robots-tag HTTP header, with a value of noindex, follow.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Fixed in r16470-dotorg.