All staging sites must have an SSL and be secured with a password
Staging url
Typical naming is shown below. We usually use the client or project name as a subdomain, sometimes abbreviated.
https://CLIENT_NAME.barques.dev
Some live examples:
- https://bwa.barques.dev
- https://grayscourt.barques.dev
Secure front-end
Create a .htpasswd file like below and put it in .htpasswds/public_html/ on the server
barques:test
Secure connection (SSL)
Add this code snippet to the
.htaccess
file inside ~/public_html/
to redirect http requests to https# Begin SSL
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
</IfModule>
#End SSL