Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 51762 invoked from network); 2 Jul 2006 14:49:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jul 2006 14:49:42 -0000 Received: (qmail 38021 invoked by uid 500); 2 Jul 2006 14:49:34 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 37750 invoked by uid 500); 2 Jul 2006 14:49: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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 37733 invoked by uid 99); 2 Jul 2006 14:49:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jul 2006 07:49:32 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of r.d.wilkerson@gmail.com designates 64.233.166.179 as permitted sender) Received: from [64.233.166.179] (HELO py-out-1112.google.com) (64.233.166.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jul 2006 07:49:31 -0700 Received: by py-out-1112.google.com with SMTP id c39so1090130pyd for ; Sun, 02 Jul 2006 07:49:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JbD8xKoIEriZLOJ0nBbNUfSSy4lnxpsYCrNAFdCeIonb985o1unrWdux0HblKS4iWMXf1g38+0b5PYKcZB2xUnWd4Vy/53deKOOXXFLU8cBqzZ2MxGNi2qwIbK/VD9o3dyMh6z5OgCZuwelDyQx/jA8/ePK7zOQZ7/yFKB8PcYI= Received: by 10.35.101.9 with SMTP id d9mr198262pym; Sun, 02 Jul 2006 07:49:11 -0700 (PDT) Received: by 10.35.123.13 with HTTP; Sun, 2 Jul 2006 07:49:10 -0700 (PDT) Message-ID: <814f987f0607020749l14d939ecs12014939214757c8@mail.gmail.com> Date: Sun, 2 Jul 2006 10:49:10 -0400 From: "Rob Wilkerson" To: users@httpd.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <814f987f0606280615w11aeb976s52771a3d268738dc@mail.gmail.com> <814f987f0607011258w77cf590bm96a1c44c733af678@mail.gmail.com> <814f987f0607011522u410e523ch7dc91e83afdd5500@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Re: mod_rewrite Scenario Assistance X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Sorry, by CGI variables, I meant the webserver variables. Stored in the CGI scope by ColdFusion and in the SERVER[] scope in PHP, if that helps. Variables like SCRIPT_NAME, HTTP_REFERER, etc. I tried your sample code against several use cases and it does everything our current module does and more. I still have to test the webserver variables to know whether I have to pass the URL in the query string, but I think that should be a formality. Thanks again for all of your help. Without it, this effort would have taken significantly longer than it did. I appreciate that. On 7/1/06, Joshua Slive wrote: > On 7/1/06, Rob Wilkerson wrote: > > Thanks, Joshua. I'm glad I asked. The ways I was planning to attempt > > would've been *far* more complex. I had no idea it would be that > > simple. > > > > If I understand you correctly...mod_rewrite does *not* modify the CGI > > variables? If not, then I probably don't have to pass anything along > > at all. That, of course, would be ideal. > > If by "CGI variables" you mean the query string, then my example did, > in fact, change them. But if you leave off the "?$1" they should be > left unchanged. (Your script may need to look in > REDIRECT_QUERY_STRING. That's why I suggest dumping all the variables > to see what is available.) > > > > > One last question (for now), if you don't mind: can you explain your > > last paragraph? For me, local referrers still need redirection. This > > is for a CMS that stores pages as data. The "landing page" is > > actually a rendering engine that compiles and caches the data as a > > physical file. I was trying to simplify the example scenario. Even > > so, I'd like to understand what your final condition is doing. > > Specifically, the NC portion. I believe the rest is checking the > > referring URL for anything that is not within the site I'm accessing > > and redirecting only then. > > I thought you mean langing page as in a page that you redirect > off-site visitors to when they first arrive. You are correct it is > not needed in the scenario you describe. NC stands for No Case, > meaning the test is case-insensitive. Check the documentation for > RewriteCond. > > Joshua. > > --------------------------------------------------------------------- > 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 > > -- Rob Wilkerson --------------------------------------------------------------------- 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