Reputation: 9309
I wanted to change the name of the folder or the directory of my website. I had it like this: www.example.com/wordpress but then I changed the sub directory to another name and then I also changed it inside WP in Settings -> General. But then something happend and I can't access the admin of the website any more :(
Is there a way to change back inside some of the files? Help is preciated!
Upvotes: 0
Views: 440
Reputation: 256
Since you first renamed the folder and then tried to change the site URL from Settings, WordPress never had a chance changing the option, since its requests would already result in a 404 Not found.
You can:
wp_options
table, find the rows where their option_name
is site_url
and home
Either one of these should do the trick.
Upvotes: 0
Reputation: 361
This is well-documented on the official WordPress website:
http://codex.wordpress.org/Changing_The_Site_URL
Upvotes: 1