shmick Posted June 19, 2008 Share Posted June 19, 2008 Hi There, This may be a basic question, but how can I force SSL on the admin login? Thanks, Michael 0 Quote Link to comment Share on other sites More sharing options...
Brett Posted June 19, 2008 Share Posted June 19, 2008 Create a .htaccess file in the root admin folder. In it put: RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} !^clientsadd.php$ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} Also, you might want to create another .htaccess file in the root of your site and in it put <Files "*.tpl"> Order Allow,Deny Deny from All </Files> The reason for the second one is that you can open up all of your custom template files and make direct copies of them. This fix will prevent that. 0 Quote Link to comment Share on other sites More sharing options...
scouthostinguk Posted June 30, 2008 Share Posted June 30, 2008 Thanks for this code as well, Brett. I've bee after this code and how to do it for some time. Thanks:-P Create a .htaccess file in the root admin folder. In it put: RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} !^clientsadd.php$ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} Also, you might want to create another .htaccess file in the root of your site and in it put <Files "*.tpl"> Order Allow,Deny Deny from All </Files> The reason for the second one is that you can open up all of your custom template files and make direct copies of them. This fix will prevent that. 0 Quote Link to comment Share on other sites More sharing options...
jnet Posted July 6, 2008 Share Posted July 6, 2008 thanks that was what I was looking for 0 Quote Link to comment Share on other sites More sharing options...
VuDo0 Posted November 12, 2008 Share Posted November 12, 2008 Check this thread: http://forum.whmcs.com/showthread.php?t=8481 0 Quote Link to comment Share on other sites More sharing options...
dkent Posted November 16, 2008 Share Posted November 16, 2008 Nice one. Very handy. Thanks guys! 0 Quote Link to comment Share on other sites More sharing options...
BionicInternet Posted November 23, 2008 Share Posted November 23, 2008 RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI}whmcs/admin RewriteRule ^(.*)$ https://www.yourdomain.co.uk/$1 [R,L] This works perfect with our EV 0 Quote Link to comment Share on other sites More sharing options...
robotronik Posted April 14, 2009 Share Posted April 14, 2009 Thankyou, works great 0 Quote Link to comment Share on other sites More sharing options...
labelhosting.com Posted July 21, 2010 Share Posted July 21, 2010 RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI}whmcs/admin RewriteRule ^(.*)$ https://www.yourdomain.co.uk/$1 [R,L] This works perfect with our EV Thank you for the information. And please let me know how to do it for a sub domain. ie: cart.domain.com is my whmcs path. Thank you in advance:) 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.