How to change checkout pages to HTTPS?
I'm getting real close to getting this all done, but how do I redirect the pages to HTTPS pages once the buyer clicks add to cart button?
Thanks!!!!
I'm getting real close to getting this all done, but how do I redirect the pages to HTTPS pages once the buyer clicks add to cart button?
Thanks!!!!
See if this helps:
SSL and Absolute Links
98/
I know what pages to HTTPS, I just don't know how to get the add to cart button to direct with HTTPS.
If you know the HTTPS pages force them to HTTPS.
PHP Example
<?php
if( $_SERVER['SERVER_PORT'] == 80) {
header('Location:https://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/'.basename($_SERVER['PHP_SELF']));
die();
}
?>
<html>
<style type="text/css">
<!--
.style1 {
color: #00FF00;
font-weight: bold;
}
-->
</style>
<p>Hello world</p>
<p>HTTPS security = <span class="style1"><?php echo((isset($_SERVER["HTTPS"]))?$_SERVER["HTTPS"]:"") ?></span></p>
</html>
Change == 80 to 443 and 'Location:... to 'Location:... will reverse
The example code above will redirect a page that was accessed using http to the https page.
you can add that code to your pages to force the visitor to the https side when they access the page.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.