3D-kreativ
3D-kreativ

Reputation: 9309

Changed the name of the folder, now I can't open WordPress

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

Answers (2)

Anastis
Anastis

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:

  1. renamed you folder back to its original name, login, change the option to the new value, and then rename the folder to its new name. Or...
  2. access your database using a tool such as phpMySQL, and in the 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

WP_
WP_

Reputation: 361

This is well-documented on the official WordPress website:

http://codex.wordpress.org/Changing_The_Site_URL

Upvotes: 1

Related Questions