From owner-freebsd-questions@FreeBSD.ORG Sat Mar 13 08:09:09 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEC2816A4CE for ; Sat, 13 Mar 2004 08:09:09 -0800 (PST) Received: from tomts5-srv.bellnexxia.net (tomts5.bellnexxia.net [209.226.175.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47E7243D3F for ; Sat, 13 Mar 2004 08:09:09 -0800 (PST) (envelope-from walterbr@sympatico.ca) Received: from CREATOR ([64.229.176.230]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040313160908.DQVU23746.tomts5-srv.bellnexxia.net@CREATOR> for ; Sat, 13 Mar 2004 11:09:08 -0500 From: "Walt Brodnie" To: Date: Sat, 13 Mar 2004 11:09:07 -0500 Message-ID: <000101c40915$838a5220$778ffea9@CREATOR> MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: subdomain masking and forwarding X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Mar 2004 16:09:09 -0000 Hello, the way I came to you is through the HYPERLINK "http://forums.devshed.com/t13363/s.html"http://forums.devshed.com/t1336 3/s.html where I found a note on subdomain/domain masking and forwarding posted by a Senior Member under the name "freebsd"... I sent my question to him through the webmaster but didn't hear from him... and subsequent search of the internet led me to your the FreeBSD Project website HYPERLINK "http://www.freebsd.org/"http://www.freebsd.org/ I don't know if there is any connection but maybe you can help me with this problem... "freebsd" advise at the forum as follows... to mask and forward "domain" to "subdomain"... ------------------------------------------------------------- If they are on the same server: (This is so-called internal redirect) RewriteEngine on RewriteRule ^/icons/(.+) - [PT,L] RewriteRule ^/(.*) /system/path/to/docroot/of/subdomain/domain.com/$1 If subdomain is on another server: RewriteEngine on RewriteRule ^/icons/(.+) - [PT,L] RewriteRule ^/(.*) HYPERLINK "http://subdomain.domain.com/$1"http://subdomain.domain.com/$1 [P,L] ------------------------------------------------------------- ***and I need a reversal... on the same server... mask and forward... "sub1.domain.com" to "sub1.domain.com/sub1.htm" -could you please show me how the above code should be re-written... and... -will this make the search engines and visitors coming through the "sub1" see all the "domain" HTML pages in the address bar... as... sub1.domain.com => sub1.domain.com/sub1.htm => sub1.domain.com/anypage.htm Please help... Thanks! -Walt "en telios echen" -- Regards, HYPERLINK "mailto:walterB.canterra@sympatico.ca"walterB.canterra@sympatico.ca Walt Brodnie Canterra Group Inc 1646 DundasStW, Mississauga,ON,L5C 1E6 tel: 905-803-0922 fax: 905-803-9823 ======================================================================= This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Unauthorized distribution, reproduction or disclosure is strictly prohibited. If you have received this email in error please notify the sender. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.615 / Virus Database: 394 - Release Date: 3/8/2004