Jump to content

Client Area force SSL?


dedinode

Recommended Posts

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..

Link to comment
Share on other sites

  • 9 months later...

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated