Title: WP-CLI and HTTP_HOST
Last modified: July 30, 2020

---

# WP-CLI and HTTP_HOST

 *  Resolved [krsi78](https://wordpress.org/support/users/krsi78/)
 * (@krsi78)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/wp-cli-and-http_host/)
 * When using WP-CLI the following PHP notice is displayed:
    Undefined index: HTTP_HOST
   in ~/wp-content/plugins/simple-301-redirects/wp-simple-301-redirects.php on line
   271
 * Based on the information in [https://wordpress.org/support/topic/php-notices-in-wp-cli/](https://wordpress.org/support/topic/php-notices-in-wp-cli/)
   the plugin is not WP-CLI aware yet.
 * Any chance this can be fixed?

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

 *  [cool_recep](https://wordpress.org/support/users/cool_recep/)
 * (@cool_recep)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/wp-cli-and-http_host/#post-13685178)
 * Getting the same error with WP CLI command. Any plan to fix this?
 *  Plugin Contributor [Scott Nelle](https://wordpress.org/support/users/scottnelle/)
 * (@scottnelle)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/wp-cli-and-http_host/#post-13708132)
 * Hi all — As you can no doubt tell, development hasn’t moved forward for a long
   time on this plugin. I’ve added this to the top of my list of things to address
   if I can find the time to finish the next version, though.

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

The topic ‘WP-CLI and HTTP_HOST’ is closed to new replies.

 * ![](https://ps.w.org/simple-301-redirects/assets/icon-256x256.jpg?rev=2783827)
 * [Simple 301 Redirects By BetterLinks - Easy WordPress Redirect Manager for Redirects, 404 Error Log & More](https://wordpress.org/plugins/simple-301-redirects/)
 * [Support Threads](https://wordpress.org/support/plugin/simple-301-redirects/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-301-redirects/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-301-redirects/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-301-redirects/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Scott Nelle](https://wordpress.org/support/users/scottnelle/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/wp-cli-and-http_host/#post-13708132)
 * Status: resolved