Make WordPress Core

Opened 5 years ago

#49155 new defect (bug)

WP_HOME constant will force-redirect static front page but not posts on front page

Reported by: eclev91's profile eclev91 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.3.2
Component: Rewrite Rules Keywords:
Focuses: Cc:


When a static front page is set and I have an HTTPS URL configured with the WP_HOME constant (such as and I try to navigate to, I'll be redirected to

When the front page is set to show latest posts and I do the same thing, WP will respond successfully to with no redirect.

I imagine this isn't specific to http/https. If my server is configured to respond to other URLs with the WP app, I think it would respond to anything.

This behavior seems like it ought to be consistent. The code in wp-includes/canonical.php around line 192 is responsible, and perhaps another case should be added?

Change History (0)

Note: See TracTickets for help on using tickets.