Change the urls back. See Changing_The_Site_URL for details of how to do this.
Just logon directly to your database host (for example ‘phpmyadmin’).
Go to the “wp_options” table
Go to the “Site url” row
Click “Edit”
Change the Site URL value
Then click “Save” (Go)
That’s it !
Yes, Thanks Esmi.
4 ways to fix this ! I never knew that.
Great !
@riversatile: You missed the first step in your solution.
Step 1: Back up your database first.
🙂
Seriously – if anyone is thinking of editing their db directly, they should always back it up first. Even the best of us make mistakes sometimes.
Yeah, you’re right !
I missed this step here because I receive backup 2 times a day automaticaly in my mailbox 😉
But for big changes in my DB, I always do a backup before.
Thanks for all your answers.
In the end I used a plugin called redirect.
However, since the redirect is in place, I cannot login to the admin panel anymore.
Any idea why?
Thank you.
Get rid of the plugin and try one of the methods listed in the page I linked to above. I prefer the functions.php method myself.
Hi esmi,
Thank you for your answer.
Actually, what I need to do is to redirect the current blog address using a 301 redirect.
What I did was that I moved the code files to another folder in my website. I then emptied the old blog folder and just created a page that would point to the new folder.
However, if I do that the site does not work anymore.
Do you know why?
Thank you.
Because that’s not how you move WordPress. If you want to physically move the site, see Moving_WordPress.