Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 60652 invoked from network); 4 Dec 2004 20:04:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Dec 2004 20:04:49 -0000 Received: (qmail 60578 invoked by uid 500); 4 Dec 2004 20:04:33 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 60546 invoked by uid 500); 4 Dec 2004 20:04:32 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 60353 invoked by uid 99); 4 Dec 2004 20:04:30 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mailhost.ntl.com (HELO mta09-winn.mailhost.ntl.com) (212.250.162.8) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 04 Dec 2004 12:04:28 -0800 Received: from aamta03-winn.mailhost.ntl.com ([212.250.162.8]) by mta09-winn.mailhost.ntl.com with ESMTP id <20041204200425.ZVKC3596.mta09-winn.mailhost.ntl.com@aamta03-winn.mailhost.ntl.com> for ; Sat, 4 Dec 2004 20:04:25 +0000 Received: from [81.98.163.98] by aamta03-winn.mailhost.ntl.com with ESMTP id <20041204200425.JRNC1113.aamta03-winn.mailhost.ntl.com@[81.98.163.98]> for ; Sat, 4 Dec 2004 20:04:25 +0000 Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <002301c4da39$7a814620$0a01a8c0@enterprise> References: <4630DBE0-4616-11D9-8B21-0003938366A4@jibeya.com> <41B1F12C.2020108@usaherbals.com> <0F37FCD7-4625-11D9-8B21-0003938366A4@jibeya.com> <002301c4da39$7a814620$0a01a8c0@enterprise> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Andrew M Date: Sat, 4 Dec 2004 20:04:22 +0000 To: users@httpd.apache.org X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked Subject: Re: [users@httpd] RewriteRule - if Not X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Leif, I have figured out exactly what I want to do, and discovered the solution to what it is I wanted to do ;-) Andrew On 4 Dec 2004, at 19:42, Leif W wrote: >> Andrew M, Saturday, December 04, 2004 13:48 >> >>> Andrew M wrote: >>> >>> I am trying to construct a statement using RewriteRules which says: >>> >>> 1. If you are A redirect to https >>> 2. if you are B redirect to https >>> 3. if you are not A or B redirect to http >>> >>> So I tried: >>> >>> RewriteRule (.register)\.(xml)$ https://%{SERVER_NAME}$1.$2 [R,L] >>> RewriteRule (.confirmStage)\.(xml)$ https://%{SERVER_NAME}$1.$2 > [R,L] >>> RewriteRule ^/(.register | confirmStage)\.(xml)$ >>> http://%{SERVER_NAME}$1.$2 [R] >>> >>> The first 2 lines work fine, but the last one does not. What am I >>> doing wrong? > > This was one thing, and was answered. > >> 1. If the url begins with https but the file is not c.xml then flip it >> so: >> >> https://www.mysite.com/c.xml >> >> becomes: >> >> http://www.mysite.com/c.xml > > This example is completely different from the previous. > >> Using RewriteRule (.*) http://%{SERVER_NAME}$1 [R] loads the page, but >> if the url begins with https it remains https. > > Yet again this is a third completely different thing. :p > > Before I try to figure out what you want to do, and then tell you how > to > do it (leaving you with only a cut & paste job), how about you figure > out what you want to do first, then describe it consistently. Perhaps > it would help to give more examples of what requests might come in, > when > you want to redirect, and where you want them to go. For me, figuring > out when and what to do can be one of the hardest parts so I can > sympathize. But it's hard to proceed unless you can describe where you > want to go. I'm more familiar with going between https and http when > each sits in a different VirtualHost section. > > Leif > > > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server > Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org