Opened 4 years ago
#53545 new defect (bug)
Domain Mapping not working with page as homepage
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.7.2 |
Component: | Rewrite Rules | Keywords: | |
Focuses: | Cc: |
Description
Hi!
Since a few WordPress Versions it is possible to point different domains to the same WP installation without a redirect. So the domain example.org can point to a WP installation with foobar.org 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 foobar.org.
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:
https://www.sumisuweb.at/
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 https://www.sumisuweb.at/, 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 https://blog.sumisuweb.at/ also points to the wp installation.
If you visit https://blog.sumisuweb.at/example-page, the url stays the same, no redirect, it works, because it is a page.
But if you try to call only https://blog.sumisuweb.at/ it redirects to https://www.sumisuweb.at.
It is also possible to visit https://blog.sumisuweb.at/2021/06/28/hello-world/
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,
Theresa