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: NVMe Drives, http/3, multiple cache methods, free data migration, free SSL certificates
Speed and performance: high I/O, lots of RAM, NVMe drives, http/3, free SSL certificates, technical support
Security and Performance: Full Separation, Anti-Exploit Technology, NVMe Drives, http/3, Redis, Free SSL Certificates
When high computing power is required, choose a dedicated server with full administration, in an European server room with the cPanel management panel.
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.
On Smarthost.eu you can register several hundred types of domains from all over the world. Prices are clear and predictable. We are a partner of NASK and EURid