• Resolved G-Olly

    (@g-olly)


    @aitpro Hi, I have a couple of Password Protected Directories on the site directory. These recently have become unreachable as they were previously. I put in the correct password, username etc. but it seems to loop and just brings up the same username and password dialogue box again. If I then close the dialogue box it resolves on a 401 error page. I wonder if this has anything to do with BPS? I am pretty sure it isn’t but just trying to cut out possible causes.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author AITpro

    (@aitpro)

    Did you setup Directory Password Protection in your web host control panel for each of the directories you want to password protect? Usually when you create Directory Password Protection for folders in your web host control panel an htaccess file with the BasicAuth htaccess code will be automatically created in whichever folder you are password protecting. So you want to check to make sure the htaccess file and/or code is being created successfully. If you are password protecting your wp-admin folder then you need to add/copy your BasicAuth htaccess code into this BPS wp-admin Custom Code text box: CUSTOM CODE WPADMIN TOP, click the Save wp-admin Custom Code button and activate wp-admin folder BulletProof Mode. The BPS root htaccess file has this htaccess code in it: ErrorDocument 401 default, which is designed to handle “401 Unathorized” errors for BasicAuth htaccess code. Maybe your particular host does not allow that code or uses a different method of handling BasicAuth errors. Try deactivating Root Folder BulletProof Mode and see what happens. Also you may want to check your web host help pages regarding adding Directory Password Protection/BasicAuth code.

    Plugin Author AITpro

    (@aitpro)

    https://forum.ait-pro.com/forums/topic/secure-non-wp-folder/

    Or maybe you need to add this htaccess code: ErrorDocument 401 default in your htaccess files in all of your other folders that you are password protecting, but I believe since the root htaccess file has this code already then any child/subfolders will use that code.

    Plugin Author AITpro

    (@aitpro)

    Is the issue/problem still occurring or is it resolved?

    Thread Starter G-Olly

    (@g-olly)

    Hi, the issue is now resolved. Stupidly enough it was just the use of a hyphen in the username for some reason. As soon as I removed this it worked. I wonder why this suddenly changed?

    Plugin Author AITpro

    (@aitpro)

    Great! Glad you got it figured out.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Password Protected Directory’ is closed to new replies.