Opened 8 years ago
#44559 new defect (bug)
Alias redirected when page is set as a homepage
| Reported by: | pavelevap | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Canonical | Version: | 4.9.7 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
I have two domains:
example1.com(hosting with WP installation)example2.com(only domain, alias toexample1.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
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)