Juthi khan Posted May 5, 2018 Share Posted May 5, 2018 How to enable a SSL (https) across WHMCS? 0 Quote Link to comment Share on other sites More sharing options...
inteldigital Posted May 5, 2018 Share Posted May 5, 2018 Depending on your web server, you should enforce this with .htaccess. Create a new file in your WHMCS root called .htaccess and add the following lines of code: ## Moving to HTTPS ## RewriteEngine On RewriteCond %{HTTPS} !=on # This checks to make sure the connection is not already HTTPS RewriteCond %{HTTP_HOST} ^(www\.)?YOURDOMAIN\.com$ [NC] RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] If you already have .htaccess (likely) add the code at the bottom of the file after everything else. If you look inside the file and find that "RewriteEngine On" already exists, simply add the code without the directive, as such: ## Moving to HTTPS ## RewriteCond %{HTTPS} !=on # This checks to make sure the connection is not already HTTPS RewriteCond %{HTTP_HOST} ^(www\.)?YOURDOMAIN\.com$ [NC] RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted May 6, 2018 Share Posted May 6, 2018 Hello @Juthi khan Please go to Setup > General Settings > WHMCS System URL and see your url to https://www.mywhmcs.com/folder/ 0 Quote Link to comment Share on other sites More sharing options...
inteldigital Posted May 6, 2018 Share Posted May 6, 2018 In my experience @WHMCS ChrisD this works, but sometimes people are still directed to HTTP if it's not set in .htaccess. Is this not the case with 7.5 ? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted May 6, 2018 Share Posted May 6, 2018 Friendly URLs will override the .htaccess when you set them up. V7 consolidated the System & Secure System SSL URL into one field to reduce this 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted May 6, 2018 Share Posted May 6, 2018 Three lines in htaccess, at the top, not that hard to do RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R] No special rewrites needed, no modification of the URl needed, it just works WHMCS v7 may have changed some things in v7, but it's still a good idea to have that in .htaccess 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.