The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Rewriting https to http
Author: niewczyk 
Date:   27-07-07 21:48

I'm new to using RewriteRule. I've a problem. I need to rewrite some URL's under https and some back under http. I have no problem with the rewrite to https:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule /user http://%{HTTP_HOST}%{REQUEST_URI} [L]

However, I don't know how to write a RewriteRule from HTTPS to HTTP.
Everthing I try leads me no where.

I'm confused at all the samples I've seen so. Is the someone that could help or point me in the right direction.



 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Rewriting https to http   new
niewczyk 27-07-07 21:48 
 Re: Rewriting https to http   new
Dan 28-07-07 14:52 
 Re: Rewriting https to http   new
niewczyk 30-07-07 13:18 
 Re: Rewriting https to http   new
Dan 30-07-07 13:27 
 Re: Rewriting https to http   new
niewczyk 30-07-07 14:13 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org