• Hello,
    I just successfully uploaded a WordPress website from a test server to Amazon Webs Services. The issue now is that I can’t log into the new website via wp-login; it keeps re-directing me to the wp-login of the website on the test server. I went to general settings of the old website and adjusted the URLs to point to the new website and now I can’t even log into the old site anymore as it keeps re-directing the login page of the new site.

    Please how do I resolve this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    – For the URLs, once imported to your new site use wordpress.org/extend/plugins/search-and-replace to fix the URLs.

    BTW, if you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong. It’s a great safety net.

    Thread Starter wendeekay

    (@wendeekay)

    How do I use this plugin since I can’t login to the back end of the website?

    Moderator t-p

    (@t-p)

    try running these queries manually on the database through php myadmin.

    As always, be careful when running queries on the database.

    UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl';
    UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl');
    UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl');
    UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl');

    – BTW, if you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong. It’s a great safety net.
    http://codex.wordpress.org/WordPress_Backups
    http://codex.wordpress.org/Backing_Up_Your_Database
    http://codex.wordpress.org/Restoring_Your_Database_From_Backup

    Thread Starter wendeekay

    (@wendeekay)

    Thank you, I’ll give it a try and see

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Site re-direct problem’ is closed to new replies.