• Resolved lfellows

    (@lfellows)


    I’m trying to move WP to a different subdomain, using the codex (“Moving WordPress Within Your Site“). However, when I go to Settings > General, the “WordPress address (URL)” field is greyed-out and I can’t change it. How can I unlock it? Do I need to change it in the database tables?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Ifellows,

    Are you using a WordPress blog hosted by WordPress? If this is the case you should ask this question at https://www.wordpress.com.

    Thread Starter lfellows

    (@lfellows)

    No, doc4, I’m hosting my own blog on 1&1, using WP version 2.8.3.

    Thread Starter lfellows

    (@lfellows)

    For anyone else similarly situated, the work-around is to edit the wp-config.php file, to define both the “WP_SITEURL” and the “WP_HOME” values. (See “Editing wp-config.php,” under “Advanced Options.”)

    Setting these values overrides whatever’s in the database table.

    Keep in mind after you do this that both fields will now be blocked (greyed-out) under Settings > General. If you want to change the values again in the future, you’ll have to re-edit the wp-config.php file.

    I am having the same problem. Is it possible to restore it, so those 2 lines are not greyed out?

    Fred

    Netdetective, All you have to do is edit the wp-config.php file again and delete those two lines that lfellows mentioned above. Obviously you’ll want to save a copy of your wp-config file before you make any changes so if something breaks you can put it back the way it was.

    I have the same issue and realize I can edit the wp-config.php but is there a way to restore the editability within the General Settings area fo WP? Do I have to edit the MySQL Db?

    Worked perfectly for me.. thanks Ifellows..

    Thanks, great advice on here. I have now resotred my site URL to it’s original value, but I can only access the home page of my site, and the dashbaord. Any ideas?

    Figured it out. After changing the site URL, to undo the changes that caused the 404 error the .htaccess file needed to be removed from the new location (which was the root directory in my case). So now my site is back to how it used to be.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Can’t change WordPress address (URL)’ is closed to new replies.