Ok so long story short, someone on our team accidentally got the domain we wanted booked on wordpress.com and not with a host for wordpress. ooopssss

We've got a slightly inferior domain booked with a host now, and we've got the superior domain parked on that host now. Good, right? you can follow either url to our site and it works.

So let's say: Superior domain: example.com Inferior domain: ex-ample.com Get the picture?

PROBLEM: all the links in the site still direct to a url with a base of ex-ample.com, even though we want someone visiting the site to only be visiting pages headed with example.com. I hope I'm explaining myself well. once we get to http://ex-ample.com/page/subpage, we can remove the dash and it still works. but aesthetically, it's really unfortunate, and I want clicking the link that leads to /page/subpage to automatically be http://example.com/page/subpage.

I feel like we could solve this by changing the home URL. I already followed instructions to change the site URL, but it seems that if we changed the HOME URL to our parked domain, the site breaks and directs to an ad-supported landing page about gardening. I've used FTP a couple times to reset both urls to ex-ample.com and try again, but it turns out it will only let us change the site url and not the home url, which doesn't really help us much anyway. I'm wondering if there's some kind of workaround to make a function that uses an alternate home_url() or something. any ideas?

thanks so much


1 Answer 1


You should change all occurences of this url in database. To do it you can:

  1. Export database to SQL
  2. Use some text editor to find&replace all occurences of http://ex-ample.com to http://example.com
  3. Import this new database to server.

The other option is to use http://wordpress.org/plugins/search-and-replace/ and replace all http://ex-ample.com occurences.

This article should be helpfull too: http://codex.wordpress.org/Moving_WordPress#On_Your_Existing_Server


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.