Create htaccess folder password with htpasswd
Lets create the .htaccess file first
<IfModule mod_rewrite.c>
RewriteEngine off
</IfModule>
AuthName "Are You Real User"
AuthType Basic
AuthUserFile "/home/apweb/www/yourfolder/xo/.htpasswd"
require valid-user
RewriteEngine off
</IfModule>
AuthName "Are You Real User"
AuthType Basic
AuthUserFile "/home/apweb/www/yourfolder/xo/.htpasswd"
require valid-user
Now we create the .htpasswd file, we have to generate the password so it will look like this
root:$apr1$2mMeQzaz$577FZ5p/E8EpdrsoVWFRg0
Please use the following URL to generate the username and the password
Finally copy and paste the generated code to your .htpasswd file and uplaod in to the server
Good Luck!
No comments:
Post a Comment