Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 82677 invoked from network); 6 Jan 2010 20:29:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jan 2010 20:29:45 -0000 Received: (qmail 37471 invoked by uid 500); 6 Jan 2010 20:29:42 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 37451 invoked by uid 500); 6 Jan 2010 20:29:42 -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 37442 invoked by uid 99); 6 Jan 2010 20:29:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2010 20:29:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of howell.r@inkworkswell.com designates 64.135.42.245 as permitted sender) Received: from [64.135.42.245] (HELO mail.wddx.net) (64.135.42.245) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2010 20:29:32 +0000 Received: from ip70-160-118-193.hr.hr.cox.net [70.160.118.193] by mail.wddx.net with SMTP; Wed, 6 Jan 2010 15:28:44 -0500 Message-ID: <4B44F249.9050600@inkworkswell.com> Date: Wed, 06 Jan 2010 15:27:53 -0500 From: Reese User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: users@httpd.apache.org References: <4B42185D.6070203@inkworkswell.com> <4B44D385.6020806@inkworkswell.com> In-Reply-To: <4B44D385.6020806@inkworkswell.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Declude-Sender: howell.r@inkworkswell.com [70.160.118.193] X-Declude-Spoolname: 74789260.eml X-Declude-RefID: str=0001.0A02020A.4B44F280.011B,ss=1,fgs=0 X-WDDX-PROCESSED-BY: WDDX.NET, Inc [MAIL.WDDX.NET] X-WDDX-PROCESSED-WITH: Declude 4.6.35 / Message Sniffer 3.0 / invURIBL 3.1.1 X-WDDX-VIRUS-SCANNED: AVG Virus Scanner and FortiNet X-WDDX-SPAM-SCORE: Score [7] at 15:28:50 on 06 Jan 2010 X-WDDX-SPAM-TESTS-FAILED: Whitelisted X-WDDX-COUNTRY-CHAIN: X-WDDX-DECLUDE-CODE: 0 X-WDDX-DECLUDE-RECIPCOUNT: 1 X-WDDX-HELO: ip70-160-118-193.hr.hr.cox.net X-WDDX-ORIGIN: 70.160.118.193 | ip70-160-118-193.hr.hr.cox.net | httpd.apache.org X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Mod_Rewrite voodoo On 06-Jan-10 13:16, Reese wrote: > On 05-Jan-10 17:43, Igor Cicimov wrote: >> You can try this >> >> RewriteEngine On >> RewriteRule (.*)([0-9]{2}).html$ /20$2/$1$2.html [R,L] > I'm also not sure what would prevent this from becoming endlessly > recursive, since the domain/2005/file013105.html file may still > get processed and redirected to domain/2005/2005/file013105.html, > etc. and etc. Is an [L] flag needed or something? Ah, it has it, now I see. Since this is expected to be permanent, then the flags should probably be [L,R=301] shouldn't they? Also, how would this be disabled for files with a date code that corresponds to calendar year 2010 (nameDDMMYY.ext)? It is needed for 2005-2009, but not other years - and not for external links. So adding RewriteCond %{HTTP_HOST} domain\.com is needed, yes? Reese --------------------------------------------------------------------- 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