Jump to content

Admin Redirect to SSL?


datawebcorp

Recommended Posts

In your admin folder create a file called .htaccess

 

In it put

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^clientsadd.php$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

 

This will always make the URL redirect to the correct file with the https.

 

As for why it is not working with the https but it is for http, I would submit a ticket to support and see what they had to say. Perhaps someone else has run into this before?

Link to comment
Share on other sites

If you remove the https entry inside the General Config area, then add:

 

RewriteEngine on

RewriteCond %{REQUEST_URI} ^/whmcs/ [NC]

RewriteCond %{SERVER_PORT} !^443$

RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]

 

to your .htaccess, it will make all access to whmcs secure via https (client and admin area).

 

Currently, the login system is not always over https. Clients will also be over https for announcements and knowledge base articles. Even though this may not be needed, it still makes sure that your clients are always on via https.

Link to comment
Share on other sites

  • 10 months later...

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