Welcome to WebmasterWorld Guest from 54.167.155.147

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Auto direct to http or https

Using htaccess?

   
11:10 am on Sep 21, 2007 (gmt 0)

10+ Year Member



Hi

I've got a page which I need to secure using https

At the moment the page has a line of php code to redirect the user to https if they arrive at http.

However, when they finish on this page I want to ensure that if they click off to another area of the site they are using http only.

The process is:

checkout page. Posts form to:
process page (visitor does not see this)
Auto redirects to:
confirmation page

However if I auto redirect to non-secure confirmation page the user gets a security warning. If I redirect to a secure confirmation page, then all the links on the page are secure too. I don't really want to hardcode all my links as http:// on this page

Is there anyway to use htaccess to catch any requests to secure pages, and if they dont meet a particular page name, redirect to http?

1:20 pm on Sep 21, 2007 (gmt 0)

5+ Year Member



Similar problem explained here [webmasterworld.com...]

Milan