Jump to content

https for all pages?


echoleaf

Recommended Posts

Mine were all https a couple of days ago, but they seem to have switched to https for only the cart. How did you do it?

 

Maybe I messed up the settings - in the config's system url/ssl system url fields I've tried:

1) regular url, ssl url

2) ssl url, empty

3) empty, ssl url

4) ssl url, ssl url

 

I didn't change anything from when everything was ssl urls the other day, so I'm a bit puzzled. Thanks!

Link to comment
Share on other sites

  • WHMCS CEO

With the WHMCS built in SSL switcher, all pages that contain clients data use SSL - that includes the client area, login pages, support tickets, order form, etc... The only pages that won't use SSL are the announcements, downloads, knowledgebase, domain checker & server status.

 

Matt

Link to comment
Share on other sites

Exactly - I haven't 'modded' anything. I just like the portal template.

 

@Matt: If a login page is http, is the login information secure at all? Is there some sort of magic switch to ssl once a login begins? Also, how does WHMCS know which pages should be secure and which shouldn't?

Link to comment
Share on other sites

You can force SSL/https with .htaccess using

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

Please, note that the .htaccess should be located in the web site main folder.

In case you wish to force HTTPS for a particular folder you can use:

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteCond %{REQUEST_URI} somefolder 
RewriteRule ^(.*)$ https://www.domain.com/somefolder/$1 [R,L]

The .htaccess file should be placed in the folder where you need to force HTTPS.

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