Forums

[resolved] changing URL!! Please help! (7 posts)

  1. benedetta
    Member
    Posted 2 years ago #

    Hi

    I have a question. I have built a wordpress site in the root directory on a server. The URL wasn't active yet, so I have been given a test.url in the meantime. So I set up the wordpress website with the test.url address. Now the new URL address is about to get activated and it will point to the root directory and the test.url address will become the normal URL address.

    What's the procedure for changing URL, when the site will be sitting in the same root and only the url changes? Im not sure when this transfer is going to happen exactly. Is it just a matter of changing the URL name in the wordpress settings, if so when exactly should I do this, because Im scared I wont be able to access the site if I don't do this change before the URL changes...

    Any help would be much appreciated.

    Thanks

    Bene

  2. songdogtech
    Member
    Posted 2 years ago #

  3. buddha trance
    Member
    Posted 2 years ago #

    You can always change the url by accessing the database, check this video tutorial
    http://educhalk.org/blog/the-difference-between-fixing-and-patching/

    Also, this will help you
    http://codex.wordpress.org/Changing_The_Site_URL

  4. benedetta
    Member
    Posted 2 years ago #

    Thanks for your help,

    do I need to backup the whole database? The site won't change location in the the server it's just the URL name that will change...Do I have to go through all that process shown in the video?

    Thanks

  5. buddha trance
    Member
    Posted 2 years ago #

    Backing up the database before attempting any changes, is always a good idea. Look also at the other video he mentions, on changing the url in the wp_options table
    http://educhalk.org/blog/changed-wordpress-blog-address-in-settings-locked-out-how-to-fix/

    You basically have to put the correct url (the final one, after the server changes it) in "site url" and "home", as indicated in the video.

    I am thinking that if you fix it through phpMyAdmin, directly in the database table, pointing to the final url, when you point the browser to that address, the blog will appear as usual.

    Hope this helps.

  6. buddha trance
    Member
    Posted 2 years ago #

    A small example:

    currently in your admin settings, you have

    WordPress address (URL): test.url
    Blog address (URL): test.url

    (assuming that your blog is in the root directory)

    if you are locked out from your blog, after the server gives you the new url, you access your database, and following the video, in wp_options table you change

    siteurl: new.url (should be line 1 of wp_options)
    home: new.url (look around line 39-40 of wp_options)

  7. benedetta
    Member
    Posted 2 years ago #

    Thank you! you've been really helpful. Fortunately the website and log-in page were still working after the URL change, as it was re-directing it automatically to the new URL... so I was still able to log-in. I logged in as usual and changed the WordPress address (URL) and theBlog address (URL) to the new address to avoid confusion and it worked out.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags