• Need some help to understand how wp-login works. When I login using the following URL:

    http://xyz/blog1/wp-login, I am automatically redirected to
    http://xyz/blog2/wp-admin

    Both blogs are copies, but that is not the issue. If I could understand what happens inside wp-login or else use debug mode ?

Viewing 1 replies (of 1 total)
  • Both blogs are copies, but that is not the issue.

    But that is the issue 🙂 wp-login.php works the way all the other wordpress files work — it looks for your site at the location you have specified as your Blog address (URI)

    If you have 2 installs sharing the sameBlog address (URI) that’s what’s going to happen.

    IF you dont want that to happen, but want to share everything else between the 2, use another options table for the other blog.

    see this, inside wp-settings.php

    $wpdb->options = $wpdb->prefix . 'options';

Viewing 1 replies (of 1 total)
  • The topic ‘wp-login: how it works ?’ is closed to new replies.