liberty7 Posted January 12, 2012 Share Posted January 12, 2012 I am aware that WHMCS uses some "intelligent https", automatically switching to https in billing section etc., but I and our clients sees this as inconsistent, we want HTTPS on all pages. Forced. How to accomplish this? I've tried various settings in .htaccess, however, I get redirection loop every time. Any advice? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted January 12, 2012 Share Posted January 12, 2012 Set your whmcs url to https in general settings 0 Quote Link to comment Share on other sites More sharing options...
liberty7 Posted January 17, 2012 Author Share Posted January 17, 2012 Thanks sparky, but that doesn't force the HTTPS if you simply request a page by HTTP. I need to force HTTPS, even if the request as HTTP. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted January 17, 2012 Share Posted January 17, 2012 that should auto change to https as whmcs does the rewrite within. Otherwise just use htaccess 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. 0 Quote Link to comment Share on other sites More sharing options...
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.