WordPress stores the Domain name as values in the database. There are actually two to change.
Traditionally, we’d have to go spelunking through the Options table to find and change them (follow the link above).
However, there’s an easier way introduce in a recent version of WP. We can now override these URL values directly in the wp-config.php file.
define('WP_SITEURL', 'http://youraddress.com');
define('WP_HOME', 'http://youraddress.com');
Hope that helps.
But the problem is that now I have no control of my blog anymore… I can not even log in.
and I just gave you two options to fix that — neither of them require you to log in.
Either click the link I gave you or reread the part starting with “However” to see the two options.
I will try right now and let you know…
I just oppened my wp-config.php file. I don’t see where to add the
define(‘WP_SITEURL’, ‘http://youraddress.com’);
define(‘WP_HOME’, ‘http://youraddress.com’);
Hey, I’ve been stupid and done exactly the same. Having had a read of this thread I have gone into my wp-config.php file and added:
define(‘WP_SITEURL’, ‘http://youraddress.com’);
define(‘WP_HOME’, ‘http://youraddress.com’);
neither of which lines were in the file before. I have then uploaded the amended file to my server but all is as before.
Do I need to clear the cache as mentioned in the first method you give above (I believe I am running the latest version of WP) I don’t know how to do that but guess I’ll have to sort out the phpMyAdmin (which is too much for me tonight!).
Blog is http://www.numbereightynine.com/theblog/
Thanks!
Hey… I went to your blog… you made the same mistake as I. Now I can’t even go back to write another blog.
Is there anybody here to help?
Hey Johnwere….
I just tried again and worked… look my blog
http://www.paulopics.com/blog
Lesson #1 – never mess with things that you don’t understand. Stop being smart…
The fix:
http://www.village-idiot.org/archives/2007/07/04/wp-emergency-url/
That link is not openning!
says something about “time the error”.
Sorry, that’s a temporary thing (I hope). When I posted it was working.
Hi Paul,
I’ve been away for the week but having another go at sorting this out now. Glad you got yours sorted. Would you mind telling me exactly what you did it?
I’ve tried overriding the URL values in wp-config.php as HandySolo suggested but this hasn’t worked. Perhaps I am not running the latest version of WP?
I don’t know yet how to do the first fix as I am trying to work out how to access my database and the link doesn’t work any more.
All help appreciated please. And yes, I shouldn’t have touched what I don’t understand but there is only one way to learn isn’t there? I wanted to make my blog the homepage of my site… wish I hadn’t touched it!
Thanks.
At the end… It was my host’s fault. I called them asking for help, and they said that the problem was the way that my account was created. they fixed in 1 minute.
But now I have another problem.
I just changed the host company. But I also changed the numbers on my domain so the new host would be linked to it.
That was a big problem… At the end the new host was able to bring my website online again (2days off line), but no luck with my blog.
I just decided upload a new wordpress to my webpage.
I was expecting transfer the old posts and categories to this new blog.
DOES ANYBODY KNOS HOW TO SEND THE OLD POSTS TO THE NEW BLOG?
Thanks…
Paulo
You don’t “send” the old posts. You read the documentation before messing with everything. Not after…
Moving_WordPress