HTTPS only on specific page with .htaccess

Posted by JamWaffles on Stack Overflow See other posts from Stack Overflow or by JamWaffles
Published on 2011-01-29T15:22:37Z Indexed on 2011/01/29 15:26 UTC
Read the original article Hit count: 211

Filed under:
|
|
|

Hi all

I have a URL such as http://www.domain.com/index.php?p=register. I want to redirect that to use HTTPS (SSL) with .htaccess, but only on this, and a couple of other pages (the login page, etc), but not the entire site. The URLs don't point to directories, but are used to dynamically include different files.

Can someone give me a pointer or an example of how to get a single page redirect to HTTPS please?

Thanks,

James

© Stack Overflow or respective owner

Related posts about php

Related posts about .htaccess