Making Sure Your On A Secure Page ...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Making Sure Your On A Secure Page ...

Post by neophyte »

What is the best way to make sure that a page is directected to the "https://securepage.site.com" -- secure address? Checking the server name and redirecting?

Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

$_SERVER['HTTPS'] exists. $_SERVER['HTTP_HOST'] should be the proper subdomain or whatever you want as well.
Last edited by feyd on Thu Feb 17, 2005 9:19 am, edited 1 time in total.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

Thanks for the tip Feyd!
Post Reply