Help with WordPress local copy from production
-
Hi all,
I’m having an issue with a local copy of a live WordPress site. The local site itself “https://localhost/mywordpress/” works, but when I try to access the wp-login.php page, it redirects me to the production site. I do the following under a local XAMPP setup:
-
copy the production WP folder;
-
import the MySQL database to the local db with the same credentials as production (I’ve already created the local db and username same as production);
-
update the ‘home’ and ‘siteurl’ to localhost in wp_options;
-
update wp_postmeta, setting meta_value to replace https://www.mysite.com with https://localhost/mysite
-
delete the wp-config.php file so that I can set up the configuration manually;
Upon the setup, I am able to view the site’s homepage, but accessing https://localhost/mywordpress/wp-login.php redirects me to the production site as well as accessing https://localhost/mywordpress/wp-admin/.
When clicking on other links on the homepage, I get redirected to the XAMPP dashboard page. This despite the link addressing to https://localhost/mywordpress/somelink/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Help with WordPress local copy from production’ is closed to new replies.