Forum Moderators: rogerd & travelin cat
The file is not necessarily located where the URL would indicate, but is shown at that URL using a 302.
*/
/** Make sure that the WordPress bootstrap has run before continuing. */
require( dirname(__FILE__) . '/wp-load.php' );
// Redirect to https login if forced to use SSL
if ( force_ssl_admin() && ! is_ssl() ) {
if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {
wp_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );
exit();
} else {
wp_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
exit();
}
}
/**
* Outputs the header for the login page.
*
* @uses do_action() Calls the 'login_head' for outputting HTML in the Log In
*header.
* @uses apply_filters() Calls 'login_headerurl' for the top login link.
* @uses apply_filters() Calls 'login_headertitle' for the top login title.
* @uses apply_filters() Calls 'login_message' on the message to display in the
*header.
* @uses $error The error global, which is checked for displaying errors.
That is normal, the www.mysite/blog/wp-admin page is not supposed to be indexed, so it makes no difference. It really is a temporary redirect.
There's nothing in the quoted code-- WP/CMS boilerplate-- that says anything about a redirect at all. The 302 is coming from somewhere else.