Make WordPress Core

Opened 3 years ago

#53545 new defect (bug)

Domain Mapping not working with page as homepage

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


Since a few WordPress Versions it is possible to point different domains to the same WP installation without a redirect. So the domain can point to a WP installation with in the database home and siteurl without gettin redirected. This is very handy when it comes to SSL. Thanks for that.
That works great if the homepage displays the latest posts, or if a blog post or page is loaded.
But if the homepage is a page it redirects to
I tried this out in a few different wp installtions and hat the same problem everywhere.
Is this a bug or intended?
I brought an example:
It is a plain wp installation. There are no themes or plugins installed except the default ones. Also the htaccess is default. Everything.
The siteurl and home is, I only made changes to the titles of the posts and the permalink (it's set to year/month/day - but it does not matter what permalink type) and I changed the homepage to a page instead of the latests posts archive.

The subdomain also points to the wp installation.
If you visit, the url stays the same, no redirect, it works, because it is a page.
But if you try to call only it redirects to
It is also possible to visit
So the redirect only happens if the homepage is a page. It does not happen if the homepage is the default post archive.
This is a bug, I can't explain otherwise why this would be intended behaviour.
Please take a look at it, it would mean very much to me.

If you have any further questions or need my assitance or anything, please don't hesitate to contact me.

Thank you!
Alle the best,

Change History (0)

Note: See TracTickets for help on using tickets.