Make WordPress Core

Opened 7 months ago

Closed 7 months ago

#64580 closed defect (bug) (fixed)

robots.txt is using ABSPATH

Reported by: timse201 Owned by: SergeyBiryukov
Priority: normal Milestone: 7.0
Component: Site Health Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

Site Health check fails when WordPress is in a subfolder while the Home URL points to the parent directory.

Change History (4)

This ticket was mentioned in PR #10836 on WordPress/wordpress-develop by @timse201.


7 months ago
#1

  • Keywords has-patch added

#2 @mukesh27
7 months ago

  • Milestone Awaiting Review7.0

Thanks for the ticket and PR.

Moving into milestone for visibility.

#3 @SergeyBiryukov
7 months ago

  • Owner set to SergeyBiryukov
  • Status newaccepted

#4 @SergeyBiryukov
7 months ago

  • Resolutionfixed
  • Status acceptedclosed

In 61577:

Site Health: Correct the check for a static robots.txt file.

This ensures that the file existence is properly detected when WordPress is located in a subdirectory while the home URL points to the website root.

Follow-up to [59890].

Props timse201, mukesh27.
Fixes #64580.

Note: See TracTickets for help on using tickets.