Error whilst copying site to local host
-
Hey there,
I have been trying to make a copy of my wordpress site onto a local host using XAMPP. So far I have been successful in creating a new database and importing the database from my live site and copying over my wordpress files to the local host public_html.
However, even though I can view my site now on the local host, it only partially seems to work. I can only see a basic html version of my homepage and none of the links will link to a web page it just comes up with “Object not found! The requested URL was not found on the server.”
I wasn’t sure if it is something to do with not correctly modifying the database to reflect the new site location. I have inserted the following links into the SQL tab (obviously making the correct changes when needed). Is there something I’m missing?
UPDATE wp_options SET option_value = replace(option_value, ‘https://www.hostedversion.com’, ‘https://localhost/testsite’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;
UPDATE wp_posts SET guid = replace(guid, ‘https://www.hostedversion.com’,’https://localhost/testsite’);
UPDATE wp_posts SET post_content = replace(post_content, ‘https://www.hostedversion.com’, ‘https://localhost/testsite’);
- The topic ‘Error whilst copying site to local host’ is closed to new replies.