Page 1 of 1

htaccess

Posted: 10 Aug 2017, 03:15
by laxina
Hi Karl, 

I am upgrading my website from http to https, I tried  to revise the htaccess file in the panel to , but not success yet. 

could you please let me know where should I put the code below to X3's htaccess file
Code
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Thanks

Leon

Re: htaccess

Posted: 10 Aug 2017, 06:09
by mjau-mjau
It should work. If not, please give me login to your panel and I will check.
Code
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]