Setting up a Password Protected Staging Site
This is a required for all of our DesignStudio staging sites
With .htaccess it is very easy to password protect a site. The method is called htaccesss password protection or htacesss authentication.
Add this to the .htaccess in the root directory
AuthType Basic AuthName "Password Protected Area" AuthUserFile /path/to/.htpasswd Require valid-user
You only need to change “/path/to/.htpasswd” with the full path to your .htpasswd, usually /home/system user in runcloud for this site/webapps/sitename
Use this as an example
Create a new file called .htpasswd which will be inside the root of the site same place as .htaccess and use this to generate the code that will go inside
for username use client name and password staging.
and that should be it!