Change site address (5 posts)

  1. gulliver
    Posted 3 years ago #

    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?

  2. Tara
    Volunteer Moderator
    Posted 3 years ago #

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

  3. gulliver
    Posted 3 years ago #


    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).

  4. gulliver
    Posted 3 years ago #

    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.

  5. gulliver
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.