Using WAMPSERVER for windows 7, smartgit and Safe Search Replace I have pulled a wordpress code from my git, downloaded a database and inserted into my localhost’s phpmyadmin. My home page works but when I click on one of the links I get the WAMP homepage. What am I doing wrong?
I have tried the following in WP-Config to use the localhost URL instead of the one saved to the database but it didn’t work:
define('WP_HOME','http://127.0.0.1/website');
define('WP_SITEURL','http://127.0.0.1/website');
Ok, based on that, I’m almost positive that you need to re-enable permalinks for your site. You are probably missing your .htaccess file or it is missing WordPress’s rewrite rules.
Go to your admin and find Settings > Permalinks. Select an option, and click “Save Changes” twice (there is a quirk that this avoids).
This will have WordPress automatically regenerate your .htaccess, which appears to be your problem.
You probably have just the wrong links saved in the DB you pulled. WordPress only stores absolute URLs in the DataBase.