Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Redirect/Require SSL for certain pages- unrelated to checkout


Recommended Posts

I am working on a side project that requires shopping_cart.php to be in SSL mode. This will also be required for a few other pages I haven't made yet. I could just code the "add to cart" buttons to be linking to the https version of the page, but I am looking for a way to automatically redirect to the same page in SSL at the very beginning.


Something along the lines of:


IF <page isn't SSL>


THEN <redirect to SSL version>




This seems like a simple thing to do, but I am going 36 hours without sleep....


Help a guy out please :D

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...