• I am using htaccess + htpasswd on two of my sites. With one it is working perfectly. With the second it asks for the password and user name twice. If you only enter it the first time it does open the restricted folder, but the css style sheet does not show up. Needless to say that leaves the page a mess.

    If you enter the info twice everything works correctly. Any ideas why it is asking twice?

    Janet

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Janet Morrow

    (@mountash)

    Well, I have corrected the issue. I must have had a referance to the home directory. I simply reentered template, and it is now working correctly.

    janet

    I am having the exact same problem (except it asks for password 4 times). I have been trying everything to fix the problem. Can anyone help?
    Janet, can you be more specific about how you fixed your problem? What template are you referring to?

    Thanks for any suggestions you may have!

    Hi there

    I believe this has something to do with links.

    If links to folders and files in password protected directories have a fully qualified name, e.g.

    https://www.domain_name/folder/file

    then you shouldn’t have to double enter passwords.

    However if the links goes:

    //folder/file then you have to put the password in again.

    I got this info from Apache Webserver documentation a few months ago after not being able to find what causes this.

    Once I changed my links I didn’t have to double enter passwords.

    Is your site password protected because you are building it and don’t want anyone to see it yet, or will it be like this all the time, e.g. only accessible to users with pwd?

    The reason I ask is that if the site is always going to be .htaccess’d then obviously you’ll need to fix it, whereas, if it’s not then once the password protection is removed it will be a non issue.

    I operate an older version of WordPress in a permanently password protected directory and once users are in they don’t have to double enter passwords. That’s because the link to that word press program is fully qualified.

    Also, in case this helps, I was just rebuilding my boyfriend’s website in wordpress 2.2 and so no one could see it while I was building it I password protected the directory with .htaccess . I noticed that once I logged in and went “view site” I had to enter the password again. I figured it was because one of links in the templates wasn’t fully qualified. I put up with it because once his site was ready I removed .htaccess altogether.

    I hope this helps.

    Belinda

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘htaccess & WordPress’ is closed to new replies.