I need to let access only user in .htaccess

I need to give only a user the permission to see the web site so this is my htaccess file:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /party/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /festivalmusicasullacqua/index.php [L]

AuthBasicProvider file

    AuthUserFile /party/.htpasswd
    AuthName "Authorization Form Title"
    AuthType Basic

    #Allow any valid user
    require valid-user

    #Allow only one user with specified username
    require user festival

    # END WordPress

The problem is that when I put the values to log in I get an 500 internal server error. Anyone can help me?

Read more here: I need to let access only user in .htaccess

Leave a Reply

Your email address will not be published. Required fields are marked *