php - Wordpress website not loading

admin2025-01-07  3

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?

Share Improve this question asked Dec 12, 2024 at 12:56 Jorn ReedJorn Reed 1 3
  • 1 What environment are you using to run the site locally? – Chris Cox Commented Dec 12, 2024 at 13:01
  • @ChrisCox wamp server – Jorn Reed Commented Dec 12, 2024 at 13:18
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Bot Commented Dec 13, 2024 at 0:27
Add a comment  | 

1 Answer 1

Reset to default 1

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.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736260422a664.html

最新回复(0)