If you want to automatically route the connection from http to https, add the following lines at the beginning of the .htaccess file in the root directory of the domain
Without the prefix www:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
With the www prefix:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Speed and performance: full SSD, http/2, multiple cache methods, free data migration, free SSL certificates
Speed and performance: high I/O, a lot of memory, full SSD, http/2, free SSL certificates, technical support
Security and performance: full separation, anti-exploit technology, full SSD, http/2, free SSL certificates
Wherever high computing power is required, you can choose from our dedicated servers in our own server room located in Central Europe.
When you need to configure an operating system on our hosting platform, it's a good idea to choose your own VPS with cPanel and root access.
Several hundred types of domains from all around the world can be registered at Smarthost.uk. Our prices are affordable for everyone.