Forums

accidentally changed blog address!! (8 posts)

  1. IronicSilence
    Member
    Posted 1 month 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 1 month 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 1 month ago #

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

  4. MichaelH
    moderator
    Posted 1 month 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 1 month 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
    moderator
    Posted 1 month 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 1 month 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 1 month ago #

    I think I'm just going to reinstall wordpress.

Reply

You must log in to post.

About this Topic

Tags