1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Local Site keeps redirect to live site

Discussion in 'Web Design' started by pugtk, May 31, 2015.

  1. pugtk

    pugtk Junior Member

    Joined:
    Jul 7, 2014
    Messages:
    132
    Likes Received:
    13
    So I have copied my site from wordpress to wamp and uploaded my sites database to wamp. following this guide https://www.youtube.com/watch?v=PKsWwvcuHyo

    I have a connection to the database.

    I have also edited my url under the wp-options to localhost

    Yet every time I type localhost into the url bar I get redirected to my live site?

    Can anyone help?
     
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,603
    Likes Received:
    11,174
    Occupation:
    Pusillanimous Knitter
    Location:
    Buenos Aires
  3. pugtk

    pugtk Junior Member

    Joined:
    Jul 7, 2014
    Messages:
    132
    Likes Received:
    13
    Thanks for the link , I ve managed to get access to the local site now :)

    by pasting the below into the wp config file

    define('WP_HOME','http://localhost');
    define('WP_SITEURL','http://localhost');

    However, only the homepage works and nothing else on the live site, I logged into the backend expecting to just have to change the url structure both that didn't work
     
  4. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    974
    Likes Received:
    680
    Occupation:
    Web/Bot Developer
    You need to flush your previous permalink structure. Set it to default then back again to your desired structure. That should do it.


     
    • Thanks Thanks x 1