Make WordPress Core

Opened 6 years ago

#44559 new defect (bug)

Alias redirected when page is set as a homepage

Reported by: pavelevap's profile pavelevap Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.7
Component: Canonical Keywords:
Focuses: Cc:

Description

I have two domains:

  • example1.com (hosting with WP installation)
  • example2.com (only domain, alias to example1.com)

When I access example2.com, content for example1.com should be displayed, but instead of it, example2.com is redirected to example1.com.

But when I access particular page (or post) example2.com/contacts, everything works and content from example1.com/contacts is displayed (but not redirected).

It seems to me that problem is related only to homepage which is set as a page_on_front, see https://core.trac.wordpress.org/browser/tags/4.9.7/src/wp-includes/canonical.php#L177

Change History (0)

Note: See TracTickets for help on using tickets.