WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I upload my website to the server and I changed the website url and home from localhost to mysite url. But it still is in localhost if I turned off wampserver it won't show the website. Just show me when wamp server is on.

What should i do?

any help will be appreciated

share|improve this question
up vote 2 down vote accepted

Wordpress hardcodes the domain into many of its permalinks in the database.

An easy solution is to download an SQL dump of the database on your host using phpMyAdmin or an SQL client, and then opening the SQL file in a (robust) text editor, assuming your database isn't enormous.

Then run a Find / Replace for the old domain (localhost) and replace with the new domain, and save the file. Then you'll need to execute the new SQL file on the database, so it is replaced with the same database with the proper domains in the permalinks

share|improve this answer
are you talking about the database which I upload to the host? – aliboy38 Sep 26 '12 at 15:21
Yes you need to modify the database on your host since it uses the new domain. The database on your local machine should stay the same (since it uses localhost) – Dave Hunt Sep 26 '12 at 15:24
Thanks. thank you so much. it worked – aliboy38 Sep 26 '12 at 15:36
It's been long time I haven't work with this so I forgot it again. And now I have same problem. would you please tell me which file should I change. The file name I need to change the localhost. – aliboy38 Nov 9 '14 at 18:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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