Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 39888 invoked from network); 4 Apr 2005 21:35:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2005 21:35:25 -0000 Received: (qmail 58649 invoked by uid 500); 4 Apr 2005 21:35:15 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 58347 invoked by uid 500); 4 Apr 2005 21:35:14 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 58332 invoked by uid 99); 4 Apr 2005 21:35:14 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from bdsl.66.14.131.218.gte.net (HELO mail.hacknslash.org) (66.14.131.218) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 04 Apr 2005 14:35:12 -0700 Received: (qmail 27402 invoked from network); 4 Apr 2005 21:35:47 -0000 Received: from phobos.lexis.int (HELO ?10.0.0.15?) (10.0.0.15) by mail.hacknslash.org with AES256-SHA encrypted SMTP; 4 Apr 2005 21:35:47 -0000 Message-ID: <4251B30C.7010401@hacknslash.org> Date: Mon, 04 Apr 2005 14:35:08 -0700 From: Octavian Hornoiu Reply-To: octavian@hacknslash.org User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@httpd.apache.org X-Enigmail-Version: 0.90.1.1 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------030900060809040009080605" X-Virus-Checked: Checked Subject: [users@httpd] using mod_rewrite for subdirectories X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------030900060809040009080605 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, I am new to using mod_rewrite but I have used apache extensively in the past. I am interested in redirecting sub-directories to a host name in the same domain. Here is an example: http://my.domain.com/externaldomain/ > http://externaldomain.domain.com/ Here is another example: http://www.test.com/firefox/ > http://firefox.test.com/ How would i go about writing the rule to match this and redirect this in the virtual host container for www.test.com? I have tried several rulesets with no success so I'm clearly not understanding something correctly. I would also like to match against the trailing slashes in case the users requested a file by mistake instead of the directory. Also, how do you place multiple rulesets and redirects in the same virtual host container? If i want to redirect 20-30 of these sub-directories how do I list them in the ruleset? Thanks for your help! Octavian Hornoiu --------------030900060809040009080605 Content-Type: text/x-vcard; charset=utf-8; name="octavian.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="octavian.vcf" begin:vcard fn:Octavian Hornoiu n:Hornoiu;Octavian email;internet:octavian@hacknslash.org x-mozilla-html:FALSE url:http://kronophobia.sf.net version:2.1 end:vcard --------------030900060809040009080605 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- 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 --------------030900060809040009080605--