I currently have a live opencart 3.0.2.0 site hosted on godaddy. Since there's a lot of issues with creating a copy of this site to a localhost, (.htaccess,mod rewrites, and seo urls) I want to do this apart from localhosting.
My question is, since ssl certificates run around 70 dollars, is there an alternative security measure that I could implement for this testing site since only myself and maybe two others will be needed to access this?
Just place a .htpasswd
and a .htaccess
in the root folder of your website.
.htaccess
AuthType Basic
AuthName "Forbidden"
AuthUserFile /var/www/website1/.htpasswd
Require valid-user
Create the .htpasswd
via the command:
htpasswd -c /var/www/website1/.htpasswd username
In this example the .htpasswd
is located next to .htaccess
in same folder. This is not considered as a good practice. You should place it outside of the public folder.