.htaccess

.htaccess enable option

It's enabled by default. No extra code is needed.

Password protection with .htaccess

- log in to your Servage account - go to Domains and Websites and choose 'protection' - choose the domain/subdomain for which you want to create a password prompt - push the button 'Add' - choose a username and a password for the page - push the button 'Add' to apply the protection Our system created a .htaccess/.htpasswd protection and the user who visits will see a password prompt when opening the page.

How to redirect all user to https?

All visitors to www: https: //www.domain name.com (with WWW): RewriteEngine On # If not using www RewriteCond %{HTTP_HOST} !^www.(.*)$ [NC] RewriteCond %{HTTP:HTTPS} !on RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R,L] # If using www RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC] RewriteCond %{HTTP:HTTPS} !on RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R,L] All visitors to: https://domain name.com (with WWW): RewriteEngine On RewriteCond %{HTTP:HTTPS} !on RewriteRule .* https://%{H...

How to create an .htaccess file?

There are serveral options do to that: Via the Servage filemanager. Just go to the folder in which you want to create the file. Push the button 'create file' in the filemanager tool bar. Name the file .htaccess. You can now edit the file and add code to it. You can also create the .htaccess file on your locale computer (e.g. with a text editor) and then upload the file to your Servage account with the help of FTP. You can also create an .htaccess file via SSH. The easiest and most common way ...