Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 5973 invoked by uid 500); 18 Mar 2003 02:16:46 -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 5957 invoked from network); 18 Mar 2003 02:16:46 -0000 Received: from mail.vnet.hu (HELO vadangyal.vnet.hu) (213.163.59.4) by daedalus.apache.org with SMTP; 18 Mar 2003 02:16:46 -0000 Received: from thunderbird (adsl241139.vnet.hu [62.77.241.139]) by mail.vnet.hu (iPlanet Messaging Server 5.1 Patch 1 (built Jun 6 2002)) with ESMTPA id <0HBX00JI8AC423@mail.vnet.hu> for users@httpd.apache.org; Tue, 18 Mar 2003 03:16:54 +0100 (CET) Date: Tue, 18 Mar 2003 03:16:53 +0100 From: Furesz Peter To: users@httpd.apache.org, Benjamin Krueger Message-id: <005701c2ecf4$719e2480$0100a8c0@thunderbird> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Mailer: Microsoft Outlook Express 6.00.2800.1106 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: <002d01c2ece7$818c47d0$0100a8c0@thunderbird> <20030318010529.GE4247@surreal.seattlefenix.net> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] url redirect Yes, thank you, but my problem is that I never use mod_rewrite, I never use regular expression, my english is poor and I can't understand thw whole mod_rewrite engine. :( (sorry, i just get tired) I have been reading this manual with two dictionary for 6-7 hours, and I can't understand. I try this but don't work: RewriteEngine On RewriteLog /var/log/rewrite.log RewriteRule ^([^/]+).mydomain.com http://www.mydomain.com/site.htm?user_site=$1 VirtualDocumentRoot /foo/bar/%2+/%1.1/%1 ----- Original Message ----- From: "Benjamin Krueger" To: Sent: Tuesday, March 18, 2003 2:05 AM Subject: Re: [users@httpd] url redirect > * Furesz Peter (the_coder@freemail.hu) [030317 16:38]: > > Hi! > > > > I would like to make redirection with the following rule. > > Every http://username.mydomain.com request to > > http://www.mydomain.com/site.php?user_site=username.mydomain.com > > But I serving more domains, it is important, that just the mydomain.com URLs > > redirect > > How can I do this? > > Thank you for your helps, > > Peter > > You can set rewrite rules on a per domain basis. Just put the rules inside the > configuration section for the domain in question. > > -- > Benjamin Krueger > > --------------------------------------------------------------------- > 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 > > > > > --------------------------------------------------------------------- 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