Title: WordPress Multisite keeps redirecting to HTTPS
Last modified: January 18, 2019

---

# WordPress Multisite keeps redirecting to HTTPS

 *  Resolved [erikvdven](https://wordpress.org/support/users/erikvdven/)
 * (@erikvdven)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/wordpress-multisite-keeps-redirecting-to-https/)
 * I would like to create a local development environment from my production, multisite,
   WordPress website. I have used the Migrate DB plugin with the following search
   and replace settings:
 * >  //domain.com -> //domain.local
   >  [https://domain.com](https://domain.com) -> [http://domain.local](http://domain.local)
   >  [https://domain.local](https://domain.local) -> [http://domain.local](http://domain.local)
   >  /data/sites/web/domain.com -> /var/www/html
 * Now it works all fine, locally, but **without** multisite enabled. As soon as
   Multisite is enabled it still tries to redirect me to HTTPS.
 * So as soon as I enable these settings in wp_config.php, I am not able to login
   at `http://domain.local/wp-admin` anymore:
 * 
    define(‘MULTISITE’, true); define(‘SUBDOMAIN_INSTALL’, false); define(‘DOMAIN_CURRENT_SITE’,‘
   domain.local’); define(‘PATH_CURRENT_SITE’, ‘/’); define(‘SITE_ID_CURRENT_SITE’,
   1); define(‘BLOG_ID_CURRENT_SITE’, 1);
 * And it redirects me from [http://domain.local/wp-admin](http://domain.local/wp-admin)
   to [https://domain.local/wp-login.php?redirect_to=http%3A%2F%2Fdomain.local%2Fwp-admin%2F&reauth=1](https://domain.local/wp-login.php?redirect_to=http%3A%2F%2Fdomain.local%2Fwp-admin%2F&reauth=1)
   which causes an **ERR_CONNECTION_CLOSED**
 * Any ideas what this is causing? Further I tried:
    - empty all `active_plugins` cells in every `wp_options` table (so also for 
      every subsite), so there should not be any active.
    - Add `define('WP_CACHE', false);` at the top of wp_config.php
 * Not sure if there could be any other setting specifically for https in Multisites.
   As I just told, without multisite enabled in `wp-config.php` I am able to reach
   [http://domain.local/wp-admin](http://domain.local/wp-admin), but with multisite
   enabled I am not and it’s trying to redirect me to an https domain which results
   in an error.
 * **EDIT:**
 * I seem to have found the issue, I have moved all plugins to a separate folder(
   temporarily) and now the website works. I am able to reach wp-admin without any
   issues. So a plugin still seem to be the problem, even though I have disabled
   all plugins via the database.
    -  This topic was modified 7 years, 4 months ago by [erikvdven](https://wordpress.org/support/users/erikvdven/).
    -  This topic was modified 7 years, 4 months ago by [erikvdven](https://wordpress.org/support/users/erikvdven/).
      Reason: optimize makeup
    -  This topic was modified 7 years, 4 months ago by [erikvdven](https://wordpress.org/support/users/erikvdven/).
    -  This topic was modified 7 years, 4 months ago by [erikvdven](https://wordpress.org/support/users/erikvdven/).

The topic ‘WordPress Multisite keeps redirecting to HTTPS’ is closed to new replies.

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 0 replies
 * 1 participant
 * Last reply from: [erikvdven](https://wordpress.org/support/users/erikvdven/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/wordpress-multisite-keeps-redirecting-to-https/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
