Hi guys

I've got a site up and running hosted on hostgator and I'm trying to make a local copy of it to run on WAMP on my PC.

The main page works, but all pages off it link to the WAMP configuraiton page.

These are the steps I've taken:

1 - [hosted site] back up the MySQL DB
2 - [hosted site] tar -cvf the folder with all the O/S level files

3 - [local site] install WAMP
4 - [local site] create a new DB with same name as remote site
5 - [local site] import the backed up DB from step 1
5 - [local site] created DB user same name/pass as remote DB
6 - [local site] copy files from step 2

Now when I go to the web site, the front screen looks fine, but all links off it end up at the WAMP server configuration page. Any ideas?

Thanks loads!

Jibb

Comments

jibberish’s picture

I should've just googled a little further.....found the answer now.

In case anyone else has this issue:

edit your httpd.conf and modify this:

LoadModule rewrite_module modules/mod_rewrite.so

Remove the "#'" at the start and restart Apache.

Flow_TnT’s picture

Hooray for Zoidberg!

Saved me pulling my hair out.

Mohal’s picture

Thanx jibberish, your comment helped me alot.

owen86’s picture

thanks a lot man! I had the same problem and thanks to you, it's solved!

thx

jibberish’s picture

Awesome! :-)

manObject’s picture

This is a classic. You downloaded a live site and a copy of its online database to your local computer, but the live site was configured for clean-urls and your localhost setup has yet to be configured for clean-urls! This means that the localhost version is outputting urls of the form "localhost/sitename/node/nn" when in fact it can only respond properly to "localhost/sitename/?q=node/nn"
You can quickly prove this by entering a url to a known page such as "localhost/sitename/?q=user". This should take you to the login page. Then after logging in as the Admin, enter url "localhost/sitename/?q=admin". Now you can go to the clean urls section of the Admin page and set up clean urls.
If you get the message that clean urls cannot be set up, you need to tweak the Apache component of WampServer - you probably need to switch on the mod-rewrite module as described elsewhere.