id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 32229,redirect_canonical - Undefined Index HTTP_HOST,Howdy_McGee,SergeyBiryukov,"One of my more popular installs is getting its `debug.log` blasted with notices: {{{ PHP Notice: Undefined index: HTTP_HOST in /wp-includes/canonical.php on line 63 }}} Which is in this conditional block of `redirect_canonical` {{{ if ( !$requested_url ) { // build the URL in the address bar $requested_url = is_ssl() ? 'https://' : 'http://'; $requested_url .= $_SERVER['HTTP_HOST']; $requested_url .= $_SERVER['REQUEST_URI']; } }}} This is more than likely being generated by bots hitting pages that no longer exist or have never existed. I created a [https://wordpress.org/support/topic/undefined-index-http_host-canonical-nav-menu-template support topic] on the issue which then was told to create a ticket. I believe my 2nd notice ( in the support question ) is also related.",defect (bug),closed,normal,4.4,Canonical,4.2.1,normal,fixed,has-patch commit,,administration