[wp-trac] [WordPress Trac] #53545: Domain Mapping not working with page as homepage
WordPress Trac
noreply at wordpress.org
Mon Jun 28 20:43:11 UTC 2021
#53545: Domain Mapping not working with page as homepage
---------------------------+-----------------------------
Reporter: teresasumisu | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Rewrite Rules | Version: 5.7.2
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
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
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53545>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list