Support » Localhost Installs » 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,, on prod the website is named 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 ( Any idea ? I didn’t configured any SSL solution on Wamp, should I do ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @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.

    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'] == '' ) {
    define('WP_SITEURL', '');
    define('WP_HOME', '');

    Then you will be able to test your theme on local site.

    Best wishes,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Https in wamp not redirect correctly’ is closed to new replies.