[wp-trac] [WordPress Trac] #44559: Alias redirected when page is set as a homepage
WordPress Trac
noreply at wordpress.org
Tue Jul 10 16:56:46 UTC 2018
#44559: Alias redirected when page is set as a homepage
--------------------------+-----------------------------
Reporter: pavelevap | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version: 4.9.7
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44559>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list