I'm having an issue with a local copy of a live WordPress site. The local site itself
http://localhost/mywordpress/ works as I did the following:
- 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
siteurlto localhost in
wp-config.phpfile so that I can set up the configuration manually;
Upon the setup, I am able to view the site's homepage, but accessing
http://localhost/mywordpress/wp-login.php produces a 403 error message.
To get around this, I copied the code to a
wp-login2.php, and I can see the page without issue. However, upon submit, I get redirected to the production site. Seeing this, I thought that maybe changing the instances of wp-login.php to
wp-login2.php would help, but same issue occurs, except that the page is a 404 since it doesn't exist in production.
When clicking on other links on the homepage, I get redirected to the XAMPP dashboard page. This despite the link addressing to
I apologize for the overload in details.
Added detail, when accessing
http://localhost/mywordpress/wp-admin/, I get redirected to the production site.