Welcome to WebmasterWorld Guest from

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)

New User

10+ Year Member

joined:Feb 20, 2005
posts: 25
votes: 0


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 Sept 21, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Jan 4, 2006
votes: 0

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