[wp-trac] [WordPress Trac] #44251: Wrong way of getting website root url when site is rewritten
WordPress Trac
noreply at wordpress.org
Mon May 28 14:07:03 UTC 2018
#44251: Wrong way of getting website root url when site is rewritten
--------------------------+------------------------------
Reporter: vladop | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by vladop):
Web config is used for .NET project. I have .NET project at https://www
.my-imaginary-blog-domain.com.
and it's web config is used for all links on that domain. My wordpress
blog is "underneath" that domain at https://www.my-imaginary-blog-
domain.com/blog. but only because I rewritten it. It has to be at
https://www.my-imaginary-blog-domain.com/blog but in fact it is on another
server with this link:https://blog.my-imaginary-blog-domain.com/blog. You
can imagine it is on this url: www.my-real-wordpress-domain.com but it has
to be rewritten to: www.my-rewritten-blog-domain.com/blog.
Idea here is that redirect_canonical gets site root url using HTTP_HOST
variable but not site url root. They don't have to match.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44251#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list