• Hi,

    I’ve setup a redirection link by accident on my localhost which directs to an online version which I’m trying to setup, however that online version directs to the localhost, so I’m kind of locked out with no way of logging in to my wp-admin. Is there a way I can manually change or reset this setting on my local files & if so, which file and how?

    HELP ME!

    Nik

Viewing 5 replies - 16 through 20 (of 20 total)
  • Ok did you just migrate an existing site? Or duplicate one? That almost sounds like its not the redirect plugin but the site_url and the home_url not being correct in the db?

    Thread Starter una_s88

    (@una_s88)

    I think thats exactly what it is.. My brother (who posted the first comment) tried to change the url in the options section of the wp admin backend of the MAMP site which is what set off the loop. But I havent been able to log into it to change it back… This is my first website so im sorry if (for) being really silly!
    I think I just duplicated the site

    haha no problem. Ok here is what you need to do. You will need to modify this using phpmyadmin. But for a quick fix you can add this to your wp-config file.

    // add this right below where it says define(‘WP_DEBUG’, ‘false’) or it might be true

    define(‘WP_SITEURL’, ‘your_domain’);
    define(‘WP_HOME’, ‘your_domain’);

    this will allow you to get inot your site, you will need to login to phpmyadmin and go int wp_options and change the site url and the home url manually.

    Hope this helps!!!

    Thread Starter una_s88

    (@una_s88)

    Oh my god.

    You are an angel sent from the dev gods haha im in on MAMP! And my site is live on the new server too!

    THANK YOU!!

    No problem!!! Glad you are up and running.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Locked-out loop’ is closed to new replies.