Title: Https in wamp not redirect correctly
Last modified: October 5, 2017

---

# Https in wamp not redirect correctly

 *  [hugov](https://wordpress.org/support/users/hugov/)
 * (@hugov)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/https-in-wamp-not-redirect-correctly/)
 * I try to import a hosted wordpress website (works fine online) into Wamp (version
   3.0.4) to make important works on the theme (personal one).
 * I’ve created a virtual host on Wamp, [https://www.site.dev](https://www.site.dev),
   on prod the website is named [https://www.site.fr](https://www.site.fr). I followed
   import tutos, ran the search-replace-db script from Interconnect/it, updated 
   the htaccess file but when I launch the website on Wamp it redirects me on the
   prod url ([https://www.site.fr](https://www.site.fr)). Any idea ? I didn’t configured
   any SSL solution on Wamp, should I do ?

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

 *  [Chetan Satasiya](https://wordpress.org/support/users/ketuchetan/)
 * (@ketuchetan)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/https-in-wamp-not-redirect-correctly/#post-9572063)
 * Hi [@hugov](https://wordpress.org/support/users/hugov/),
 * First, you can not run the site with the HTTPS on your local WAMP server. you
   have to change URL with the HTTP using the Interconnect/it.
 * Please let me know if I can help anything.
 *  [Mitchell D. Miller](https://wordpress.org/support/users/brainiac/)
 * (@brainiac)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/https-in-wamp-not-redirect-correctly/#post-9631771)
 * Hello hugov:
    You need a conditional statement in local wp-config.php to use 
   your production database on test site. You can ignore browser security warnings,
   if you use a self-signed certificate.
 * On localhost add:
 *     ```
       if ( $_SERVER['SERVER_ADDR'] == '127.0.0.1' ) {
       define('WP_SITEURL', 'https://www.site.dev/');
       define('WP_HOME', 'https://www.site.dev/');
       }
       ```
   
 * Then you will be able to test your theme on local site.
 * Best wishes,
    Mitchell

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

The topic ‘Https in wamp not redirect correctly’ is closed to new replies.

## Tags

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

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 2 replies
 * 3 participants
 * Last reply from: [Mitchell D. Miller](https://wordpress.org/support/users/brainiac/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/https-in-wamp-not-redirect-correctly/#post-9631771)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
