Title: Undefined index: HTTP_HOST
Last modified: August 21, 2016

---

# Undefined index: HTTP_HOST

 *  [xzoom](https://wordpress.org/support/users/xzoom/)
 * (@xzoom)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/undefined-index-http_host/)
 * Hello,
 * I get the following error: [error] [client ::1]
    `PHP Notice: Undefined index:
   HTTP_HOST in /wp-includes/ms-settings.php on line 97`
 * At ms-settings.php, a server var is called **$_SERVER[‘HTTP_HOST’ **but it doesn’t
   exist sometimes
    LINE 25 $domain = addslashes( $_SERVER[‘HTTP_HOST’] ); LINE 
   97 if ( $current_site->domain != $_SERVER[ ‘HTTP_HOST’ ] ) {
 * [http://stackoverflow.com/questions/6004298/when-could-the-http-host-header-be-undefined](http://stackoverflow.com/questions/6004298/when-could-the-http-host-header-be-undefined)
   
   [http://www.php.net/manual/es/reserved.variables.server.php](http://www.php.net/manual/es/reserved.variables.server.php)
 * > `’HTTP_HOST’
   >  Contents of the Host: header from the current request, if there
   > is one. `
 * **Might use function “isset(var)” in order to avoid php notice errors?**
 * Thanks

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [12 years, 3 months ago](https://wordpress.org/support/topic/undefined-index-http_host/#post-4670981)
 * Hm. Try making a WP MU-plugin with this:
 *     ```
       <?php
   
       add_filter('https_ssl_verify', '__return_false');
       add_filter('https_local_ssl_verify', '__return_false');
       ```
   
 *  Thread Starter [xzoom](https://wordpress.org/support/users/xzoom/)
 * (@xzoom)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/undefined-index-http_host/#post-4671041)
 * Hello Ipstenu,
 * Yes, it works… PHP notice has dissapeared… 🙂
 * If I disable https_sssl_verify, can it affect other functionalities?
 * Thank you!

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

The topic ‘Undefined index: HTTP_HOST’ is closed to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 2 replies
 * 2 participants
 * Last reply from: [xzoom](https://wordpress.org/support/users/xzoom/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/undefined-index-http_host/#post-4671041)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
