Title: Undefined array key &#8220;HTTP_HOST&#8221; when HTTP/3 is enabled
Last modified: June 26, 2023

---

# Undefined array key “HTTP_HOST” when HTTP/3 is enabled

 *  [Slams](https://wordpress.org/support/users/slams/)
 * (@slams)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/undefined-array-key-http_host-when-http-3-is-enabled/)
 * Hello, after HTTP3 protocol is enabled plugin start throwing a lot of warnings:
 * `Undefined array key "HTTP_HOST" in /wp-content/plugins/quick-pagepost-redirect-
   plugin/page_post_redirect_plugin.php on line 2053`
 * Hope it will help you to adapt the plugin.
    -  This topic was modified 2 years, 11 months ago by [Slams](https://wordpress.org/support/users/slams/).

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [gmariani405](https://wordpress.org/support/users/gmariani405/)
 * (@gmariani405)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/undefined-array-key-http_host-when-http-3-is-enabled/#post-16939923)
 * This is still an issue, especially when accessing the site via WP-CLI. This was
   also reported over a year ago: [https://wordpress.org/support/topic/undefined-index-http_host-10/](https://wordpress.org/support/topic/undefined-index-http_host-10/)
 *  [gmariani405](https://wordpress.org/support/users/gmariani405/)
 * (@gmariani405)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/undefined-array-key-http_host-when-http-3-is-enabled/#post-16999650)
 * Still an issue, and some more details
 *     ```wp-block-code
       PHP Warning:  Undefined array key "HTTP_HOST" in /wp-content/plugins/quick-pagepost-redirect-plugin/page_post_redirect_plugin.php on line 2061
       ```
   
 *  [Showfom](https://wordpress.org/support/users/showfom/)
 * (@showfom)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/undefined-array-key-http_host-when-http-3-is-enabled/#post-17008733)
 * Fixed by adding
 * `fastcgi_param HTTP_HOST $host;`
 * To your .php location in Nginx
 *  [gmariani405](https://wordpress.org/support/users/gmariani405/)
 * (@gmariani405)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/undefined-array-key-http_host-when-http-3-is-enabled/#post-17013207)
 * You shouldn’t have to update your server config to compensate for a plugin not
   properly checking for the existence of server variables.
 *  Thread Starter [Slams](https://wordpress.org/support/users/slams/)
 * (@slams)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/undefined-array-key-http_host-when-http-3-is-enabled/#post-17013321)
 * `fastcgi_param HTTP_HOST $host;`
 * Did the same. WordPress also throws same warnings so it’s better to make changes
   in config.
 *  [gmariani405](https://wordpress.org/support/users/gmariani405/)
 * (@gmariani405)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/undefined-array-key-http_host-when-http-3-is-enabled/#post-17013349)
 * I think my issue is slightly different than yours. In your case I think it was
   caused due to the switch to HTTP3 and your server config. Which that solution
   would work for you. I was accessing the site via WP-CLI where those server variables
   are not populated causing it throw errors in the same way. Which is why i was
   saying the plugin should be updated to compensate for when variables aren’t found.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Undefined array key “HTTP_HOST” when HTTP/3 is enabled’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/quick-pagepost-redirect-plugin_8d7b6f.
   svg)
 * [Quick Page/Post Redirect Plugin](https://wordpress.org/plugins/quick-pagepost-redirect-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-pagepost-redirect-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-pagepost-redirect-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-pagepost-redirect-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-pagepost-redirect-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-pagepost-redirect-plugin/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [gmariani405](https://wordpress.org/support/users/gmariani405/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/undefined-array-key-http_host-when-http-3-is-enabled/#post-17013349)
 * Status: not resolved