Local Site keeps redirect to live site

pugtk

Junior Member
Joined
Jul 7, 2014
Messages
138
Reaction score
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?
 
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
 
You need to flush your previous permalink structure. Set it to default then back again to your desired structure. That should do it.


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
 
Back
Top