I am working on a website in which I want to restrict the access to it by entering some username and password in it like if I/or any outside users open the website, it should ask for Username
and Password
.
The current code which I am using in .htaccess file inside public_html folder is:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
Problem Statement:
I am wondering what changes I should make in the .htaccess
code above so that it allows outside users to enter username and password to enter the website.