Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 76795 invoked from network); 6 Jul 2006 17:46:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Jul 2006 17:46:18 -0000 Received: (qmail 21474 invoked by uid 500); 6 Jul 2006 17:46:09 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 21367 invoked by uid 500); 6 Jul 2006 17:46:09 -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 21353 invoked by uid 99); 6 Jul 2006 17:46:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jul 2006 10:46:09 -0700 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,MAILTO_TO_SPAM_ADDR,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jslive@gmail.com designates 64.233.182.186 as permitted sender) Received: from [64.233.182.186] (HELO nf-out-0910.google.com) (64.233.182.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jul 2006 10:46:08 -0700 Received: by nf-out-0910.google.com with SMTP id x37so270412nfc for ; Thu, 06 Jul 2006 10:45:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=L4nFbY1WIV5LbNPjRUsJI9m/u/HiChH4OBbLzIymtQWJ1cGxH9Ov9HpMBJdNntWaUgtmLndZTgVaII6wZkcWuHeno7flEiW9aTy+uutI7O4ZFCKjsKokVCHtgjOeJIF/4nBIO6WcESMQ3/NGPNsakIP4L5mBjkezW70y0bgnfAI= Received: by 10.78.167.12 with SMTP id p12mr300543hue; Thu, 06 Jul 2006 10:45:47 -0700 (PDT) Received: by 10.78.143.5 with HTTP; Thu, 6 Jul 2006 10:45:47 -0700 (PDT) Message-ID: Date: Thu, 6 Jul 2006 13:45:47 -0400 From: "Joshua Slive" Sender: jslive@gmail.com To: users@httpd.apache.org In-Reply-To: <20060706173356.89211.qmail@web81212.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060706173356.89211.qmail@web81212.mail.mud.yahoo.com> X-Google-Sender-Auth: ddc298f3e1586f0d X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] RewriteRule to redirect to one of many directories X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 7/6/06, Michael wrote: > Hello, everyone. I've got a bunch of directories like > http://www.example.com/mem_AAA/mem_AAA.htm, where AAA is a member's initials. > I'm trying to redirect all traffic to these directories to their new > location: http://www.example.com/members/mem_AAA/mem_AAA.htm > > So I've tried countless combinations of RewriteCond and RewriteRule. E.g.: > > RewriteEngine On > RewriteCond %{HTTP_HOST} \.example\.com > RewriteRule /mem_(.*)/mem_(.*).htm /members/mem_$1/mem_$2.htm [R=301,L] > > RewriteEngine On > RewriteCond %{HTTP_HOST} ^www\.example\.com$ > RewriteRule ^/mem_(.*)/mem_(.*) /members/mem_$1/mem_$2 [R=301,L] > > Sadly, none have worked. I've read the docs, and still don't see what I'm > doing wrong. "None have worked" is not very descriptive. Exactly what is in the RewriteLog? 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