Title: Site re-direct problem
Last modified: August 22, 2016

---

# Site re-direct problem

 *  [wendeekay](https://wordpress.org/support/users/wendeekay/)
 * (@wendeekay)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/site-re-direct-problem-1/)
 * 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](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/site-re-direct-problem-1/#post-5262615)
 * – 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](https://wordpress.org/support/users/wendeekay/)
 * (@wendeekay)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/site-re-direct-problem-1/#post-5262763)
 * How do I use this plugin since I can’t login to the back end of the website?
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/site-re-direct-problem-1/#post-5262782)
 * 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/WordPress_Backups)
   [http://codex.wordpress.org/Backing_Up_Your_Database](http://codex.wordpress.org/Backing_Up_Your_Database)
   [http://codex.wordpress.org/Restoring_Your_Database_From_Backup](http://codex.wordpress.org/Restoring_Your_Database_From_Backup)
 *  Thread Starter [wendeekay](https://wordpress.org/support/users/wendeekay/)
 * (@wendeekay)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/site-re-direct-problem-1/#post-5262925)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [wendeekay](https://wordpress.org/support/users/wendeekay/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/site-re-direct-problem-1/#post-5262925)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
