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.
Any ideas?
Michael
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]