HelioHost Posted January 28, 2017 Posted January 28, 2017 How to force http to https in Tommy-- Sincerely,Andrew Young
Krydos Posted January 29, 2017 Posted January 29, 2017 Create a file in public_html called .htaccess and put these contents: RewriteEngine On RewriteCond %{HTTPS} != on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
HelioHost Posted January 29, 2017 Author Posted January 29, 2017 But while I put it into htaccess it comes 500error on the serverHeliohost Support <support@heliohost.org>? 2017?1?29? ??,??12:28??:Create a file in public_html called .htaccess and put these contents:RewriteEngine OnRewriteCond %{HTTPS} != onRewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] You may view the status of your ticket by visiting: http://www.helionet.org/index/index.php?showtopic=27487 Thank you,Heliohost supporthttp://www.heliohost.org/http://www.helionet.org/ -- Sincerely,Andrew Young What??Heliohost Support <support@heliohost.org>? 2017?1?29? ??,??1:39??:But while I put it into htaccess it comes 500error on the serverHeliohost Support <support@heliohost.org>? 2017?1?29? ??,??12:28??:Create a file in public_html called .htaccess and put these contents:RewriteEngine OnRewriteCond %{HTTPS} != onRewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]You may view the status of your ticket by visiting:http://www.helionet.org/index/index.php?showtopic=27487Thank you,Heliohost supporthttp://www.heliohost.org/http://www.helionet.org/--Sincerely,Andrew Young You may view the status of your ticket by visiting: http://www.helionet.org/index/index.php?showtopic=27487 Thank you,Heliohost supporthttp://www.heliohost.org/http://www.helionet.org/ -- Sincerely,Andrew Young
Krydos Posted January 29, 2017 Posted January 29, 2017 I tested it a bit and the line RewriteCond %{HTTPS} !=on There can't be a space between != and on otherwise it gives that error.
HelioHost Posted January 29, 2017 Author Posted January 29, 2017 Thank you for your help! It works Thanks again Heliohost Support <support@heliohost.org>? 2017?1?29? ??,??1:46??:I tested it a bit and the lineRewriteCond %{HTTPS} !=onThere can't be a space between != and on otherwise it gives that error. You may view the status of your ticket by visiting: http://www.helionet.org/index/index.php?showtopic=27487 Thank you,Heliohost supporthttp://www.heliohost.org/http://www.helionet.org/ -- Sincerely,Andrew Young
Recommended Posts