• Resolved atarom

    (@atarom)


    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 https://www.domain.com/dev.

    My original “blog” install is set to load from the root domain, so when you visit https://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 https://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

    (@atarom)

    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.

    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: https://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

    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

    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.

    Wow! WordPress is very amazing community!

    I have got the solution now, thanks to Whooami

    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.