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:


2 Answers 2


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.

  • Glad the solution was found. Sidenote: The permalinks are flushed on the "Settings > Permalinks" page load, so no need to even save a single time.
    – kaiser
    Mar 3, 2013 at 20:37
  • Visiting the page will not, however, create or modify an .htaccess file. Mar 7, 2013 at 17:31

You probably have just the wrong links saved in the DB you pulled. WordPress only stores absolute URLs in the DataBase.

  • Thanks kaiser, how could I check this? I thought replacing the names using the search replace tool would take care of this... Mar 3, 2013 at 15:17
  • Open wp-config.php (in your WordPress installs root directory). You can add the following to wp-config.php force it to use your localhost URL instead of the one saved to the db: define('WP_HOME','http://localhost'); define('WP_SITEURL','http://gsff.dev'); Mar 3, 2013 at 15:28
  • @MattVanAndel don't I need to replace all the urls if I use blabla.dev instead of Unfortunately I still get the same problem. Mar 3, 2013 at 15:49
  • I have tried the followin: define('WP_HOME',''); define('WP_SITEURL',''); but it doesn't work Mar 3, 2013 at 15:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.