dedinode Posted June 6, 2012 Share Posted June 6, 2012 Hi I've been trying to get the client area of WHMCS to force SSL and use https:// however everything I have tried using .htaccess has resulted in a redirect loop error. I'm probably doing something stupid and not noticed but would appreciate any help with this. I notice in the admin panel of WHMCS you can force SSL for the admin area but I don't see anything for the client area which would have been handy. Thanks in advance.. 0 Quote Link to comment Share on other sites More sharing options...
And then there was one les Posted March 18, 2013 Share Posted March 18, 2013 its a pain in the backside to do it, and if the person types out the url you have no control but you can edit the urls in the templates. {$systemsslurl} is what you need to add before each link. There are three areas where you cannot use it that i know of so far, serverstatus, Knowledgebase and downloads. Everywhere else you can use it. Just change the links 0 Quote Link to comment Share on other sites More sharing options...
And then there was one les Posted March 19, 2013 Share Posted March 19, 2013 I just got help with this so the kudos go to a friend on stackexchange. I was looking to SEO my whole site basically, but i found that the url masking broke when the protocol switched then returned if a link with the same protocol was clicked, SSL, non-SSL, basically the second line of each allows the mask to stay in place when switching protocol, otherwise you will see for instance, knowledgebase.php instead of knowledgbase/ or whatever you named it. RewriteCond %{HTTPS} on RewriteRule ^other-page$ https//%{HTTP_HOST}/whmcs-dir/$0 [R,L,NC] RewriteRule ^other-page$ /otherscript.php [L,NC] RewriteCond %{HTTPS} off RewriteRule ^another-page$ http//%{HTTP_HOST}/whmcs-dir/$0 [R,L,NC] RewriteRule ^another-page$ /anotherscript.php [L,NC] Make sure that you use the complete set for each rewrite or face the pages of death. It seems i am not yet eligible to format my posts, i will come back and do that when i am. 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.