Forums

accidentally changed blog address!! (10 posts)

  1. IronicSilence
    Member
    Posted 2 years ago #

    By mistake I changed my blog address in the general settings and i can't log into my wordpress account.
    I only have access to ftp and I found a solution from "http://www.velvetblues.com/web-developm… but cant seem to get it to work :/

    I'm suppose to put that code in my functions file.

    <?php
    update_option(’siteurl’,'http://www.example.com’);
    update_option(’home’,'http://www.example.com’);
    ?>

    I think I'm just putting the url's in wrong.

    I changed my blog address to "my url" (before it was "myurl/wordpress")
    by mistake...am I suppose to use the one i changed it two or the original url.
    I just have no idea what urls to use, so I really need help!!!

    Thanks!!

  2. issieparis
    Member
    Posted 2 years ago #

    something similar happened to me once, you need to go to your myPHPadmin page to move the home and url of your blog...let me look for instructions.

  3. IronicSilence
    Member
    Posted 2 years ago #

    I don't have access to that, just ftp. But thanks

  4. MichaelH
    Volunteer
    Posted 2 years ago #

    Then edit your wp-config.php and add these 'defines':

    define('WP_SITEURL', 'http://example.com');
    define('WP_HOME', 'http://example.com');

    Of course replace with your correct URL.

    See:
    Editing wp-config.php

  5. IronicSilence
    Member
    Posted 2 years ago #

    okay thanks, that worked.
    But now my password won't work....
    It doesn't even say that i have the wrong password, it just keeps refreshing the page.

    would it be because of the site url redirecting from
    http://codex.wordpress.org/Login_Trouble

  6. MichaelH
    Volunteer
    Posted 2 years ago #

    Did you set those values in wp-config.php to be the URLs that were in place before you did the Settings->General change?

    Not sure where you have WordPress installed (such as your web-root folder) but you do have WordPress in a sub-folder called wordpress and that's here http://thepapermoon.ravenloftstudios.org/wordpress

  7. IronicSilence
    Member
    Posted 2 years ago #

    yep i have it in the web root folder.

    I put this in wp-config.php

    define('WP_SITEURL', 'http://thepapermoon.ravenloftstudios.org/wordpress');
    define('WP_HOME', 'http://thepapermoon.ravenloftstudios.org/wordpress');

  8. IronicSilence
    Member
    Posted 2 years ago #

    I think I'm just going to reinstall wordpress.

  9. chengdu living
    Member
    Posted 1 year ago #

    I'm having this exact same problem. I'm working on a site locally and when I changed the address in settings to the web address, everything freaked out.

    I added the DEFINE lines you suggested into wp-config.php but it's not accepting my password either, even though it should be pointing to the right location locally.

    I wish I had backed up wp-config.php!

    Any tips on how I can get this working?

  10. chengdu living
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags