• Resolved Tonarves

    (@tonarves)


    Hi guys ??

    I moved a WordPress site from live server to my local computer (MAMP). I have my site now on localhost/mysite and following settings in wp-config.php:

    define(‘WP_HOME’,’localhost/mysite’);
    define(‘WP_SITEURL’,’localhost/mysite’);

    My problem is that when i press any links on my local website it tries to go localhost/mysite/localhost/mysite/?page_id=79.

    So it is doubling the url. Could you help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Just a small note, you forgot to include the protocol in the URLs:

    define('WP_HOME', 'https://localhost/mysite');
    define('WP_SITEURL', 'https://localhost/mysite');
    Thread Starter Tonarves

    (@tonarves)

    Wow! Thanks for your super fast reply! It did it :).

    I didn’t know i have to put https:// when using localhost…

    Awesome !!

    You’re welcome. Have a nice day ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with WP_HOME and WP_SITEURL’ is closed to new replies.