Hello.
I recently installed Sentora v1.0.3 on my sub domain say :- panel01.myhost.com
As I installed a SSL certificate for my Sentora Panel it works great over here https://panel01.myhost.com
But when I type the Non https link say panel01.myhost.com it redirects me to a website hosted inside in my Sentora panel. [It Opens the website that I have added first to my Sentora Panel]
I tried to add the below rule to .htaccess file located here /etc/sentora/panel/ which didnt help as well.
a2enmod rewrite is Enabled and I did restart apache2 service after applying changes.
It would be great if some help me to automatically redirect the panel01.myhost.com to https://panel01.myhost.com
Thank You & Regards.
I recently installed Sentora v1.0.3 on my sub domain say :- panel01.myhost.com
As I installed a SSL certificate for my Sentora Panel it works great over here https://panel01.myhost.com
But when I type the Non https link say panel01.myhost.com it redirects me to a website hosted inside in my Sentora panel. [It Opens the website that I have added first to my Sentora Panel]
I tried to add the below rule to .htaccess file located here /etc/sentora/panel/ which didnt help as well.
Code:
#Enforce
SSL
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
a2enmod rewrite is Enabled and I did restart apache2 service after applying changes.
It would be great if some help me to automatically redirect the panel01.myhost.com to https://panel01.myhost.com
Thank You & Regards.