Forums

Password protect directory in public_html (1 post)

  1. Gonuz
    Member
    Posted 7 months ago #

    I have 9 directory folders that I want to make available to my associates, but with password protection. They are stored in public_html.
    When I use my cPanel to password protect the directories, they become inaccessible. I get a message that the file is not available and no request for password.

    I got some advice to change the .htaccess file as follows"
    Replace -
    RewriteRule . /index.php [L]
    With-
    RewriteRule ./ /index.php [L]

    That did not work well, as other things in WordPress were affected.....like many pages going to 404 not available.

    Got any advice?

Reply

You must log in to post.

About this Topic