Use another RewriteCond, they are AND-ed.  Something like this:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !stream\.php
RewriteCond %{HTTPS} =off
RewriteRule ^(.*) https://%{SERVER_NAME}$1 [R,L]

If you're getting frustrated, read your 
http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritelog.

Ben

On Sep 12, 2011, at 2:47 PM, Patrick Litke wrote:

> So who's up to help an apache2 noob? :D
> 
> I finally have mod_rewrite working to redirect all traffic to https 
> (including the request string).  But I now have a new issue that I've been 
> trying to figure out ( http://ubuntuforums.org/showthread.php?t=1840390 ) and 
> have yet to solve.  So I figured that I'd see if anyone here can shed some 
> light for me!
> 
> What I'm trying to do is this.
> [X] Redirect all traffic to HTTPS
> [  ] If a request is made to stream.php on :80, serve the page on :80
> [  ] If a request is made to stream.php on :443, redirect to :80 including 
> the request URI
> 
> The link above is to the ubuntu forums where I've been seeking help, but so 
> far, to no avail.  
> Thoughts / Suggestions?
> 
> Hope you all are enjoying the last bit of summer we're getting!
> 
> -Pat

Reply via email to