I have a domain, let's say example.com, where my admins use www.example.com, so I have https://www.example.com working and I'd like to get securelogin to forward people going to http://www.example.com/user to https://www.example.com/user. I have that working, but now on my local box, which is www-dev.example.com, it's redirecting to my secure base URL https://www.example.com. I found a variable called securelogin_secure_forms, which I can put in my sites/www-dev.example.com/settings.php and it will stop the redirection, but it doesn't stop the alteration of the form action.
Am I approaching this wrong? I have multiple sub-domains other than www-dev (i.e staging, m, staging.m, and www-dev.m), so I just want to get securelogin working on the main www subdomain.
Thanks!
Comments
Comment #1
jason_purdy commentedNevermind, I figured it out. For the record, if anyone wants to disable securelogin on a particular (sub)domain, overriding any database settings, just add this code to your domain settings.php:
Comment #2
mfbAlso, if you have SSL working on www-dev.example.com (which is a good idea for security :) then you can just leave the secure base URL setting blank and secure login module will automagically redirect to the same domain you're already on.