Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache https

Status
Not open for further replies.

27032002

Technical User
Mar 27, 2003
1
CH
Hello

I'm having problems by implementing a RewriteRule. I would like to force users to use https instead of http.
I implemented a Rule, which redirects a URL ( to a Secure URL
(
***********************************************************
RewriteEngine On

RewriteCond %{SERVER_PORT} !^443$

RewriteRule ^(.*) [R]

***********************************************************

Until there, everything works fine. But once i get the Secure URL, erase the "s" from https and press the refresh button i get the unsecured URL
(So my question, how can i keep https for the whole session?

Thanks

Antonio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top