[wp-trac] [WordPress Trac] #34353: redirect_canonical() – Undefined indexes 'host' and 'scheme'
WordPress Trac
noreply at wordpress.org
Fri Aug 16 18:02:43 UTC 2024
#34353: redirect_canonical() – Undefined indexes 'host' and 'scheme'
-------------------------------------------------+-------------------------
Reporter: theamila | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future
| Release
Component: Canonical | Version: 4.3.1
Severity: normal | Resolution:
Keywords: needs-unit-tests has-patch needs- | Focuses:
testing-info |
-------------------------------------------------+-------------------------
Comment (by Mayhem30):
I solved the issue by adding the following to my php-fpm.conf file :
{{{
fastcgi_param HOST $server_name;
fastcgi_param HTTP_HOST $server_name;
}}}
It seems you need to send both HOST and HTTP_HOST params.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34353#comment:63>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list