Thank you Ben for the response. I've been fighting with this for a while
now, and the docs have been invaluable to learning _rewrite. I'm the not the
strongest with regex, but like everything so far, hack and slash seems to be
slowely getting me there... :P. Ill have another go at this once I get out
of class. Thanks again :)
On Sep 13, 2011 8:40 AM, "Benjamin Coddington" <[email protected]> wrote:
> 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