httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] RewriteRule to redirect to one of many directories
Date Thu, 06 Jul 2006 17:45:47 GMT
On 7/6/06, Michael <> wrote:
> Hello, everyone.  I've got a bunch of directories like
>, where AAA is a member's initials.
>  I'm trying to redirect all traffic to these directories to their new
> location:
> 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?


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message