homepage Welcome to WebmasterWorld Guest from 54.196.206.80
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Visit PubCon.com
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




msg:3456871
 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




msg:3457107
 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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved