• 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, on prod the website is named 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). 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'] == '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.