[wp-trac] [WordPress Trac] #43539: Custom feed types breaks redirect_canonical behavior
WordPress Trac
noreply at wordpress.org
Sat Mar 17 18:57:14 UTC 2018
#43539: Custom feed types breaks redirect_canonical behavior
--------------------------+------------------------------
Reporter: satantime | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version: 4.9.4
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by soulseekah):
Oh, I'm so sorry for annoying you!
There is no redirect happening, though.
{{{
now try to access localhost/feed/test or localhost/feed/test/
and you'll see https://localhost/feed/test/feed/test/
}}}
This does not happen on a fresh install of WordPress:
{{{
~: curl -v http://stream.localhost/feed/test
* Trying 127.0.0.1...
* Connected to stream.localhost (127.0.0.1) port 80 (#0)
> GET /feed/test HTTP/1.1
> Host: stream.localhost
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.10.3 (Ubuntu)
< Date: Sat, 17 Mar 2018 18:54:34 GMT
< Content-Type: application/octet-stream; charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< X-Powered-By: PHP/7.2.0
< Last-Modified: Sat, 17 Mar 2018 18:00:35 GMT
< ETag: "b93afcef48181c119af6e2dc30f9e48a"
< Link: <http://stream.localhost/wp-json/>; rel="https://api.w.org/"
<
* Connection #0 to host stream.localhost left intact
}}}
{{{
~: curl -v http://stream.localhost/feed/test/
* Trying 127.0.0.1...
* Connected to stream.localhost (127.0.0.1) port 80 (#0)
> GET /feed/test/ HTTP/1.1
> Host: stream.localhost
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.10.3 (Ubuntu)
< Date: Sat, 17 Mar 2018 18:55:28 GMT
< Content-Type: application/octet-stream; charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< X-Powered-By: PHP/7.2.0
< Last-Modified: Sat, 17 Mar 2018 18:00:35 GMT
< ETag: "b93afcef48181c119af6e2dc30f9e48a"
< Link: <http://stream.localhost/wp-json/>; rel="https://api.w.org/"
<
* Connection #0 to host stream.localhost left intact
}}}
There is no redirect. My feed outputs void, just like I told it to. No
redirects. Period.
What am I missing? What's the actual use-case here? What's the setup?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43539#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list