Proper procedure for changing WP path/directory name? (6 posts)

  1. onlinecasinoselite.org
    Posted 11 years ago #

    I changed the directory name of my WP installation a while back, and all hell broke loose. I couldn't log in because the login page was looking for the old location. I couldn't change the directory name because I couldn't log in. The rewrite rules were also going nuts, but I couldn't fix them because I couldn't log in. I tried a synlink--no good. I eventually went into the MySQL database directly and started editing the options--kind of a scary thing to do.

    Is there a way to do this kind of a change that will not cause problems? I want to change the directory name again.

  2. oriecat
    Posted 11 years ago #

    You need to change the address in both places in the admin panel first, and then move the files (or rename the directory, whatever you're doing...)

  3. onlinecasinoselite.org
    Posted 11 years ago #

    I'll give it a try, thanks! I had just assumed that would still cause problems because the program would then try to save the new options config file in a not-yet-existing directory.

  4. Kafkaesqui

    Posted 11 years ago #

    For future reference: options (as most everything in WordPress) are saved in the database, and not to any files.

  5. onlinecasinoselite.org
    Posted 11 years ago #

    D'oh! Yeah, you're right! Didn't think about that.

  6. meganano
    Posted 10 years ago #

    Damn... I too changed the directory name... in the admin panel and then I changed the folder name via SFTP. Alas, there are still files looking for the old directory. Is there a way to remedy this without downloading and installing phpmyadmin? I don't have cpanel through my webhost.


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.