Title: /wp-login.php?redirect_to=http problem
Last modified: August 19, 2016

---

# /wp-login.php?redirect_to=http problem

 *  [aubervilliers](https://wordpress.org/support/users/aubervilliers/)
 * (@aubervilliers)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/)
 * Hello,
 * i have a problem connecting with my blogs. When i try mydomain.com/wp-login.php
   it does not work.
 * It gives me [http://mydomain.com/wp-login.php?redirect_to=http://mydomain.com/wp-admin/&reauth=1](http://mydomain.com/wp-login.php?redirect_to=http://mydomain.com/wp-admin/&reauth=1)
 * It works only with my principal blog. I can’t go to the dashboard of the other
   blogs.
 * Need some help.
 * Thank you

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/page/2/?output_format=md)

 *  [site4](https://wordpress.org/support/users/site4/)
 * (@site4)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/#post-1962672)
 * same thing got these every time I try to move up from reg WP to Multi Site it
   locks me out here are the codes it is spitting at me any way
 *     ```
       http://2chirp.me/wp-login.php?redirect_to=http%3A%2F%2F2mydomain.tld%2Fwp-admin%2Fwidgets.php%3Fs%3D%26show%3D%26sidebar%3Dsecond-section&reauth=1
   
       login.php?redirect_to=http%3A%2F%2F2mydomain.tld%2Fwp-admin%2Fwidgets.php%3Fs%3D%26show%3D%26sidebar%3Dsecond-section&reauth=1
   
       ?redirect_to=http%3A%2F%2F2mydomain.tld%2Fwp-admin%2Fpost.php%3Fpost%3D1%26action%3Dedit&reauth=1
   
       wp-login.php?redirect_to=http%3A%2F%2F2mydomain.tld%2Fwp-admin%2F&reauth=1
       ```
   
 * Notice they are different ???
 * hope this gets fixed asap 🙂
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/#post-1962737)
 * disable your plugins first. all of ’em.
 *  Thread Starter [aubervilliers](https://wordpress.org/support/users/aubervilliers/)
 * (@aubervilliers)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/#post-1962752)
 * I did it but nothing happens.
 * I can connect the whole blogs if i set up wp-config.php like this : define(‘DOMAIN_CURRENT_SITE’,‘
   mydomain.com’ );
    But i can’t go to the super admin profile.
 * But if i sept up wp-config.php like that : define(‘DOMAIN_CURRENT_SITE’, ‘subdomain.
   mydomain.com’ );
    i can only connect the admin panel with my principal site but
   i can go to the super admin profile.
 * Stranger : one or the other !
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/#post-1962756)
 * **site4** – Make a NEW topic. Don’t steal someone else’s, it’s rude.
 * What code did you put in your wp-config.php?
 * `define('WP_ALLOW_MULTISITE', true);` right?
 *  Thread Starter [aubervilliers](https://wordpress.org/support/users/aubervilliers/)
 * (@aubervilliers)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/#post-1962760)
 * this is my wp-config.php :
 *     ```
       $base = '/';
       define('DOMAIN_CURRENT_SITE', 'robespierre-cochennec-peri.aubervilliers.fr' );
       define('PATH_CURRENT_SITE', '/' );
       define('SITE_ID_CURRENT_SITE', '1');
       define('BLOGID_CURRENT_SITE', '1' );
   
       /* Uncomment to allow blog admins to edit their users. See http://trac.mu.wordpress.org/ticket/1169 */
       //define( "EDIT_ANY_USER", true );
       /* Uncomment to enable post by email options. See http://trac.mu.wordpress.org/ticket/1084 */
       //define( "POST_BY_EMAIL", true );
   
       /**#@+
        * Authentication Unique Keys.
        *
        * Change these to different unique phrases!
        * You can generate these using the {@link http://api.wordpress.org/secret-key/1.1/wpmu/salt WordPress.org secret-key service}
        * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
        *
        * @since 2.6.0
        */
       [REMOVED]
       /**#@-*/
   
       /**
        * WordPress Database Table prefix.
        *
        * You can have multiple installations in one database if you give each a unique
        * prefix. Only numbers, letters, and underscores please!
        */
       $table_prefix  = 'wp_';
   
       /**
        * WordPress Localized Language, defaults to English.
        *
        * Change this to localize WordPress.  A corresponding MO file for the chosen
        * language must be installed to wp-content/languages. For example, install
        * de.mo to wp-content/languages and set WPLANG to 'de' to enable German
        * language support.
        */
       define ('WPLANG', 'fr_FR');
   
       // double check $base
       if( $base == 'BASE' )
       	die( 'Problem in wp-config.php - $base is set to BASE when it should be the path like "/" or "/blogs/"! Please fix it!' );
   
       // uncomment this to enable WP_CONTENT_DIR/sunrise.php support
       //define( 'SUNRISE', 'on' );
   
       // uncomment to move wp-content/blogs.dir to another relative path
       // remember to change WP_CONTENT too.
       // define( "UPLOADBLOGSDIR", "fileserver" );
   
       // If VHOST is 'yes' uncomment and set this to a URL to redirect if a blog does not exist or is a 404 on the main blog. (Useful if signup is disabled)
       // For example, the browser will redirect to http://examples.com/ for the following: define( 'NOBLOGREDIRECT', 'http://example.com/' );
       // Set this value to %siteurl% to redirect to the root of the site
       // define( 'NOBLOGREDIRECT', '' );
       // On a directory based install you must use the theme 404 handler.
   
       // Location of mu-plugins
       // define( 'WPMU_PLUGIN_DIR', '' );
       // define( 'WPMU_PLUGIN_URL', '' );
       // define( 'MUPLUGINDIR', 'wp-content/mu-plugins' );
   
       define( "WP_USE_MULTIPLE_DB", false );
       define (‘WP_ALLOW_MULTISITE’, true);
       define( ‘MULTISITE’, true );
       define( ‘SUBDOMAIN_INSTALL’, true );
       ```
   
 * Like i said before, if i set up wp-config.php like this : define(‘DOMAIN_CURRENT_SITE’,‘
   mydomain.com’ );
    But i can’t go to the super admin profile.
 * But if i sept up wp-config.php like that : define(‘DOMAIN_CURRENT_SITE’, ‘subdomain.
   mydomain.com’ );
    i can only connect the admin panel with my principal site but
   i can go to the super admin profile.
 * Do you have a solution ?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/#post-1962770)
 * *AUGH* Please don’t EVER post your auth keys and salts every again. You can use
   those to hack.
 * And yes. I have a possible solution.
 * See this part?
 *     ```
       define( "WP_USE_MULTIPLE_DB", false );
       define (‘WP_ALLOW_MULTISITE’, true);
       define( ‘MULTISITE’, true );
       define( ‘SUBDOMAIN_INSTALL’, true );
       ```
   
 * The STYLE of quotes are different. Change it to this:
 *     ```
       define( "WP_USE_MULTIPLE_DB", false );
       define ('WP_ALLOW_MULTISITE', true);
       define( 'MULTISITE', true );
       define( 'SUBDOMAIN_INSTALL', true );
       ```
   
 * Also put that ABOVE the `// double check $base` part… Make the WHOLE thing look
   like this:
 *     ```
       $table_prefix  = 'wp_';
       define ('WPLANG', 'fr_FR');
   
       /* Authentication Unique Keys. */
       [Removed]
   
       /* MultiSite */
       define( "WP_USE_MULTIPLE_DB", false );
       define ('WP_ALLOW_MULTISITE', true);
       define( 'MULTISITE', true );
       define( 'SUBDOMAIN_INSTALL', true );
       $base = '/';
       define('DOMAIN_CURRENT_SITE', 'aubervilliers.fr' );
       define('PATH_CURRENT_SITE', '/' );
       define('SITE_ID_CURRENT_SITE', '1');
       define('BLOGID_CURRENT_SITE', '1' );
   
       // double check $base
       if( $base == 'BASE' )
       	die( 'Problem in wp-config.php - $base is set to BASE when it should be the path like "/" or "/blogs/"! Please fix it!' );
   
       define( "WP_USE_MULTIPLE_DB", false );
   
       /* That's all, stop editing! Happy blogging. */
       ```
   
 * Just replace [Removed] with NEW keys from [http://api.wordpress.org/secret-key/1.1/wpmu/salt](http://api.wordpress.org/secret-key/1.1/wpmu/salt)
   PLEASE
 * I also pulled out a LOT of cruft that you don’t need right now. Or … anymore.
   It’s all commented out so lets clean that out for now.
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/#post-1962799)
 * Yeah, he’s got the old mu config file.
 *  Thread Starter [aubervilliers](https://wordpress.org/support/users/aubervilliers/)
 * (@aubervilliers)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/#post-1962802)
 * It does not work. Other problems come. ;(
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/#post-1962813)
 * WHAT other problems?
 * I’m not psychic, you know 🙂
 *  Thread Starter [aubervilliers](https://wordpress.org/support/users/aubervilliers/)
 * (@aubervilliers)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/#post-1962815)
 * WordPress notifies me database error with the configuration you gave me.
 * My configuration : wordpress 3.1 subdomain
 * If you have another idea. Thank you.
 *  Thread Starter [aubervilliers](https://wordpress.org/support/users/aubervilliers/)
 * (@aubervilliers)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/#post-1962868)
 * Ipstenu,
 * i tried to put the quotes like you told me and the configuration you gave me.
   But I have a database error for my principal bog (on chrome : “Error establishing
   a database connection”).
 * I can reach the other blogs and their admin panel. I can’t go to the super admin
   profile and my principal blog dashboard.
 * Do you have an idea to fix for my problem.
 * Thank you
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/#post-1962882)
 * > i tried to put the quotes like you told me and the configuration you gave me.
   > But I have a database error for my principal bog (on chrome : “Error establishing
   > a database connection”).
 * Okay, let’s try this…
 *     ```
       $base = '/';
       define('DOMAIN_CURRENT_SITE', 'robespierre-cochennec-peri.aubervilliers.fr' );
       define('PATH_CURRENT_SITE', '/' );
       define('SITE_ID_CURRENT_SITE', '1');
       define('BLOGID_CURRENT_SITE', '1' );
   
       /* Uncomment to allow blog admins to edit their users. See http://trac.mu.wordpress.org/ticket/1169 */
       //define( "EDIT_ANY_USER", true );
       /* Uncomment to enable post by email options. See http://trac.mu.wordpress.org/ticket/1084 */
       //define( "POST_BY_EMAIL", true );
   
       /**#@+
        * Authentication Unique Keys.
        *
        * Change these to different unique phrases!
        * You can generate these using the {@link http://api.wordpress.org/secret-key/1.1/wpmu/salt WordPress.org secret-key service}
        * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
        *
        * @since 2.6.0
        */
       [REMOVED]
       /**#@-*/
   
       /**
        * WordPress Database Table prefix.
        *
        * You can have multiple installations in one database if you give each a unique
        * prefix. Only numbers, letters, and underscores please!
        */
       $table_prefix  = 'wp_';
   
       /**
        * WordPress Localized Language, defaults to English.
        *
        * Change this to localize WordPress.  A corresponding MO file for the chosen
        * language must be installed to wp-content/languages. For example, install
        * de.mo to wp-content/languages and set WPLANG to 'de' to enable German
        * language support.
        */
       define ('WPLANG', 'fr_FR');
   
       // double check $base
       if( $base == 'BASE' )
       	die( 'Problem in wp-config.php - $base is set to BASE when it should be the path like "/" or "/blogs/"! Please fix it!' );
   
       // uncomment this to enable WP_CONTENT_DIR/sunrise.php support
       //define( 'SUNRISE', 'on' );
   
       // uncomment to move wp-content/blogs.dir to another relative path
       // remember to change WP_CONTENT too.
       // define( "UPLOADBLOGSDIR", "fileserver" );
   
       // If VHOST is 'yes' uncomment and set this to a URL to redirect if a blog does not exist or is a 404 on the main blog. (Useful if signup is disabled)
       // For example, the browser will redirect to http://examples.com/ for the following: define( 'NOBLOGREDIRECT', 'http://example.com/' );
       // Set this value to %siteurl% to redirect to the root of the site
       // define( 'NOBLOGREDIRECT', '' );
       // On a directory based install you must use the theme 404 handler.
   
       // Location of mu-plugins
       // define( 'WPMU_PLUGIN_DIR', '' );
       // define( 'WPMU_PLUGIN_URL', '' );
       // define( 'MUPLUGINDIR', 'wp-content/mu-plugins' );
   
       define( "WP_USE_MULTIPLE_DB", false );
       define ('WP_ALLOW_MULTISITE', true);
       define( 'MULTISITE', true );
       define( 'SUBDOMAIN_INSTALL', true );
       ```
   
 *  Thread Starter [aubervilliers](https://wordpress.org/support/users/aubervilliers/)
 * (@aubervilliers)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/#post-1962903)
 * Hello Ipstenu,
 * i tried your last solution but does not work. The same errors appear.
 * With my initial config with the wrong quotes, i am almost ready to succeed just
   the link inside the admin panel to go to the super admin profile does not work.
 * But if i put the principal blog url with /wp-admin/network on the url bar, i 
   can reach the super admin profile but cannot configure a blog when i choose modify.
 * What it’s strange is when i am connected in my principal blog i can go to any
   other blogs panel admin and switch between the admin and the blog public.
 * Another idea ? ;(
 *  Thread Starter [aubervilliers](https://wordpress.org/support/users/aubervilliers/)
 * (@aubervilliers)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/#post-1962904)
 * I can modify the config of the blogs with this url :
    [http://robespierre-cochennec-peri.aubervilliers.fr/wp-admin/network/site-info.php?id=1](http://robespierre-cochennec-peri.aubervilliers.fr/wp-admin/network/site-info.php?id=1)
 * and change the number for each blog config.
 * Why it’s not automatic and have to do this manuelly playing with urls ?
 * :(((((((((
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/#post-1962909)
 * Try this for the end bit. BUT.
 *     ```
       define( "WP_USE_MULTIPLE_DB", false );
       define ( "WP_ALLOW_MULTISITE", true);
       define( "MULTISITE", true );
       define( "SUBDOMAIN_INSTALL", true );
       ```
   
 * I wanna point out that ALL I changed was the TYPE of quotes
 * ‘ THAT quote will NEVER work on your server. You need to use NON formatted quotes.
   So ‘ or ” will be fine. Make sure you’re not using Word or any RTF text editor
   here. Use NOTEPAD.

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/page/2/?output_format=md)

The topic ‘/wp-login.php?redirect_to=http problem’ is closed to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 30 replies
 * 5 participants
 * Last reply from: [SteveMcA](https://wordpress.org/support/users/stevemca/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/wp-loginphpredirect_tohttp-problem/page/2/#post-1963034)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
