I migrated a live website to localhost and am having problems with accessing it ("page not found"). I am on windows and am using xampp.
This is what I have done so far:
- I migrated a live website to localhost
- imported database
- changed the siteurl and homeurl in wp_options to localhost/pagename
When I open the page on localhost, the header and footer are displayed, but the content is missing, and I am getting a "Page not found" message instead. All the links in navigation menu (in header) have the correct hyperlinks, but when I click them, I am redirected to http://localhost/dashboard/
I have gone through several guides, including resetting permalinks through wp-cli, but none of them have worked so far. Can you help me?
2
Answers
I am using Windows and Xampp. No other software. I restored my database and made only 2 changes in this file (line 24 and 25).
I don’t know well XAMPP but first have you disable WampServer.
In XAMPP Control Panel have you correctly start the Apache and MySQL module (are they green ?).
You can try visiting your site in private mode (with your web browser, or clear your history / cache etc for this site).