• I have my id/password for my website set-up at the root level. My problem is when users enter my site http://www.clanobrien.us the user is prompted twice for his user id and password. Please see the code invoked below when entering the site below.

    If I directly enter into my address bar another part of my site I am only prompted once for my id/password. Yahoo Web Hosting Customer Support has confirmed my password settings are correct. They believe it is a WP issue.

    I have cretaed a temporary id and password for my site for someone who wishes to help. The id is temp and the password is temp.

    http://www.clanobrien.us/index.php looks like this
    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    define(‘WP_IN_ROOTDIR’, true);
    require(‘./blog/wp-blog-header.php’);
    ?>

    http://www.clanobrien.us//blog/wp-blog-header.php looks like this
    <?php

    if (! isset($wp_did_header)):
    if ( !file_exists( dirname(__FILE__) . ‘/wp-config.php’) ) {
    if ( strstr( $_SERVER[‘PHP_SELF’], ‘wp-admin’) ) $path = ”;
    else $path = ‘wp-admin/’;
    die(“There doesn’t seem to be a wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn’t work for all server setups. The safest way is to manually create the file.”);
    }

    $wp_did_header = true;

    require_once( dirname(__FILE__) . ‘/wp-config.php’);

    wp();
    gzip_compression();

    require_once(ABSPATH . WPINC . ‘/template-loader.php’);

    endif;

    ?>

The topic ‘Login required twice’ is closed to new replies.