Title: Redirect loop after 2nd install
Last modified: August 19, 2016

---

# Redirect loop after 2nd install

 *  Resolved [atarom](https://wordpress.org/support/users/atarom/)
 * (@atarom)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/redirect-loop-after-2nd-install/)
 * So I recently added a second “dev” wordpress installation, so that I can edit
   my site without the changes going live. So i changed the table prefix in my wp-
   config.php, installed a second copy of WP to [http://www.domain.com/dev](http://www.domain.com/dev).
 * My original “blog” install is set to load from the root domain, so when you visit
   [http://www.domain.com](http://www.domain.com), you see my site.
 * Now I’m able to access my dev install, but when I try to log into my blog install
   at domain.com/dev/wp-login.php, I get told to “please log in again” and I get
   redirected to [http://www.domain.com/dev/wp-login.php?redirect_to=%2Fblog%2Fwp-admin%2F](http://www.domain.com/dev/wp-login.php?redirect_to=%2Fblog%2Fwp-admin%2F)
 * From there it wants to log into the dev install, but if I try, I get a redirect
   loop.
 * What did I break?

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

 *  Thread Starter [atarom](https://wordpress.org/support/users/atarom/)
 * (@atarom)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/redirect-loop-after-2nd-install/#post-805411)
 * Hm, somehow my siteurl in my wp_options got changed to the URL of the second 
   install. changing it back to the original location fixed my problem.
 * Talking to myself on support forums is fun.
 *  [jakslev](https://wordpress.org/support/users/jakslev/)
 * (@jakslev)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/redirect-loop-after-2nd-install/#post-805477)
 * well I have something that seems to be the same issue.
    I have my blog installed
   in domain.com/blog but wants to use blog.domain.com as the domain (set up as 
   subdom in cpanel), but somehow the wordpress installation kicks the visitor to
   the main directory: [http://www.domain.com](http://www.domain.com) instead of
   blog.domain.com. I have tried the settings feature in wordpress and changed the
   address there; but that has no real effect.
 * Any ideas?
 * jakslev
 *  [jakslev](https://wordpress.org/support/users/jakslev/)
 * (@jakslev)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/redirect-loop-after-2nd-install/#post-805478)
 * Hehe.. well yes it is fun to talk to yourself :o)
 * Just found the wp_options key in the database and corrected it there. Somehow
   that is more powerful than using the built in change address feature on the wordpress
   blog.
 * If you are reading this and looking for information in wp-options you are in 
   the wrong place; you need to look in the database ;o)
 * jakslev
 *  [jlundell](https://wordpress.org/support/users/jlundell/)
 * (@jlundell)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/redirect-loop-after-2nd-install/#post-805681)
 * i had a similar symptom after upgrading to WP 2.6. I solved it by logging out
   from the main page, and was then able to log in normally as admin.
 *  [musthafa_zahir](https://wordpress.org/support/users/musthafa_zahir/)
 * (@musthafa_zahir)
 * [17 years ago](https://wordpress.org/support/topic/redirect-loop-after-2nd-install/#post-805785)
 * Wow! WordPress is very amazing community!
 * I have got the solution now, thanks to **[Whooami](http://wordpress.org/support/profile/7432)**
 * Below is the fix, just follow the instructions, very simple!
    ** When your website
   redirects to wp-admin/install.php [FIX] :
 * > 1. Login to phpMyAdmin.
   >  2. Select the database and click on ‘Structure’ tab.
   > 3. Right under the list of table there is a “Check All” link. Click on it to
   > select all tables. 4. From a “With selected:” drop-down menu right next to 
   > it, choose “Check table”.
 * **To Repair:**
 * > 1. Login to phpMyAdmin
   >  2. Choose the affected database. If you only have one
   > database, it should choose it by default so you don’t need to do anything. 
   > 3. In the main panel, you should see a list of your database tables. Check 
   > the boxes by the tables that need repair. 4. At the bottom of the window just
   > below the list of tables, there is a drop down menu. Choose “Repair Table”

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

The topic ‘Redirect loop after 2nd install’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 4 participants
 * Last reply from: [musthafa_zahir](https://wordpress.org/support/users/musthafa_zahir/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/redirect-loop-after-2nd-install/#post-805785)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
