WordPress.org

Support

Support » How-To and Troubleshooting » Change site address

Change site address

  • gulliver
    Participant

    @gulliver

    Leaving the install location unchanged, I just changed the site address from [domain.com] to [domain.com]/old.

    It appears to work fine, except that it’s still also available at [domain.com].

    Why? And what’s the fix?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Tara
    Participant

    @t-p

    have you followed this codex: http://codex.wordpress.org/Changing_The_Site_URL

    gulliver
    Participant

    @gulliver

    Thanks.

    Yes, I did read it – after I’d originally changed the url in the dashboard – and since trying the edit wp.config and functions suggestions things are now worse… can’t log-in, and the site is minus the css (although the source shows a location of /old).

    gulliver
    Participant

    @gulliver

    UPDATE: I was reluctant to get into the db, but having done so and edited accordingly things are now working again at the previous url.

    gulliver
    Participant

    @gulliver

    FURTHER UPDATE: This is here in the hope it may help someone else who gets a problem, because I’m not sure the codex is sufficiently clear, and the page mentioned above seems to contradict another at http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory.

    I’ve frequently changed the ‘public url’ of my installs by editing the ‘Site Address’ in ‘general settings’. If it’s then publishing into a directory, I then create that directory and copy into it the old index.php and .htaccess files and appropriately edit them to show the correct paths. I then remove those older index.php and .htaccess files from the root/whatever other folder it was publishing into. Things then work as they should – available at the new location and not at the old.

    My error this time was to forget to create the new folder and add the files and then remove the old ones as explained above.

    If this isn’t the correct way to do it, I’m happy to be told just how it should be done.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change site address’ is closed to new replies.