Jump to content

https instead of http


Lucas

Recommended Posts

How can I have https work all the time instead of sometimes going back to http or https

 

I tried using this ReWrite module but it starts timing out or so on:

 

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule (.*) https//%{HTTP_HOST}%{REQUEST_URI}

 

(yes it's missing :, couldn't post it until I have 15+ posts)

Link to comment
Share on other sites

If you're referring to adding the https: url in WHMCS, the reason why it doesn't enforce the secure connection on some pages, is simply because it just isn't needed.

 

But if you really do feel the need to encrypt all pages under your site then you can use this:

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

 

Don't quote me on this, but I think the method you were using was to force HTTPS on webmail.

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