Hi everybody, I have a website in working condition that works with sessions ( loing page)
How Do I implement the SSL on my website...
i.e. I want the username and password to be sent securely over the internet.
Thanks.
SSL conversion
Moderator: General Moderators
hmm and that's it?
say the path to my login page is: http://www.abc.com/login
is it going to automatically redirect to https://www.abc.com/login?
or I should specify https?
say the path to my login page is: http://www.abc.com/login
is it going to automatically redirect to https://www.abc.com/login?
or I should specify https?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
You have to specify which pages you want to be run under SSL.
Code: Select all
if ($_SERVER['HTTPS'] != 'on') {
header('Location: https://domain.com/login.php');
exit();
}
//rest of login script goes here