homepage Welcome to WebmasterWorld Guest from 54.197.65.82
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Auto direct to http or https
Using htaccess?
BenSeb

5+ Year Member



 
Msg#: 3456869 posted 11:10 am on Sep 21, 2007 (gmt 0)

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?

 

milanmk

5+ Year Member



 
Msg#: 3456869 posted 1:20 pm on Sep 21, 2007 (gmt 0)

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

Milan

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved