Jump to content
  • 0

Force Ssl + Htaccess


Michael
 Share

Question

I was helping a customer out with their Blesta install and I can't seem to get the force SSL working via .htaccess.

 

I've always used this code:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]

RewriteCond %{SERVER_PORT} ^80$
RewriteRule .* https://domain/{REQUEST_URI} [R,L]

But when you go to the portal: The following don't work:

- Support Tickets

- Order

- Downloads

 

I'm a bit confused because if you remove the code and go to https:// it works fine but I want to force SSL.

Link to comment
Share on other sites

2 answers to this question

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.

Guest
Answer this question...

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

Loading...
 Share

×
×
  • Create New...