I downloaded all the wordpress files from the server.
And imported the database phpmyadmin locally.
And I can enter the site local. But when I do:
http://localhost:8080/nieuwdenhaag/wp-login.php
Then I don't see the login page of localhost. But I will be redirected to de admin of the server site.
So are there are some files that I have to change, except of course the wp-config file?
Thank you
CodePudding user response:
After download the complete site from the live server you have to change the url in the database in the options
table. The parameters are siteurl
and home
. After that you should be able to login to your admin.
In Wordpress all URLs are stored directly in the database. You have to search a plugin that replaces your URL in the database that you can see all files (Better Search Replace) for example.
CodePudding user response:
Not 100% a WordPress expert but I did have to do something similar to this recently to migrate a site and also get it working on my localhost to fix a few bugs. What I did was use this plugin (https://en-ca.wordpress.org/plugins/all-in-one-wp-migration/) to export -> to a file and then import it on your localhost!
Hope this helps.