I downloaded an entire existing wordpress website from a filemanager. I also setup the database for it, by exporting/importing the existing database. I also modified the siteurl and home field in wp_options
in https://localhost/my_project
. But localhost does not load that website at all. It says can not reach site. And I'm not sure why. I also set up the right values in wp-config.php and I have no clue which other steps I could take. Any ideas?
I downloaded an entire existing wordpress website from a filemanager. I also setup the database for it, by exporting/importing the existing database. I also modified the siteurl and home field in wp_options
in https://localhost/my_project
. But localhost does not load that website at all. It says can not reach site. And I'm not sure why. I also set up the right values in wp-config.php and I have no clue which other steps I could take. Any ideas?
WP stores URLs in a lot of different tables. You can either use a WP CLI command to search and replace the old URL to your new local URL, or use a plugin to do the same thing.
Don't just go do a blanket search-and-replace in phpMyAdmin or similar because the URLs are stored in serialized arrays in some places, and if the character count of the URLs differs the whole site breaks.