Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 9108 invoked from network); 18 Aug 2007 20:55:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Aug 2007 20:55:26 -0000 Received: (qmail 35979 invoked by uid 500); 18 Aug 2007 20:55:12 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 35962 invoked by uid 500); 18 Aug 2007 20:55:12 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 35951 invoked by uid 99); 18 Aug 2007 20:55:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Aug 2007 13:55:12 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of 0.fractalus@gmail.com designates 72.14.246.249 as permitted sender) Received: from [72.14.246.249] (HELO ag-out-0708.google.com) (72.14.246.249) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Aug 2007 20:55:06 +0000 Received: by ag-out-0708.google.com with SMTP id 9so901051agd for ; Sat, 18 Aug 2007 13:54:45 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=Qz8oKkTvTAW/CWxsOKSFp0b2FgUPPb8j5z147nmVi+QbVJRqtlfytjKPDzstC+yR4O/SJLG8X9+xBM5biz2IM+oNhiWDvaHb/rm0WpNYkNkMOS108940uE9R8VVf6XkUaQIWm2udhjfQeC02UAnxZ0pjThP8b7KvgFyWP+OUCB0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=T9JGNXUNHPhtLhHqftgAprZZu92OC3thCaNNJzhRvglyPt+pfsmNlX1unbI5YKMd39jYjXOQmSEkHLBDM0kYs6PC1SMN+KpzMNARYw28ueqzS/J23WW8BRQ0zmCs9sJNr5MuHfOGpxEtnZk9zCX5iBdsFV9gEwQuqLGD1h2g1Go= Received: by 10.90.30.13 with SMTP id d13mr4378832agd.1187470484668; Sat, 18 Aug 2007 13:54:44 -0700 (PDT) Received: from debian.local ( [71.222.206.183]) by mx.google.com with ESMTPS id 20sm6289215agd.2007.08.18.13.54.41 (version=SSLv3 cipher=RC4-MD5); Sat, 18 Aug 2007 13:54:42 -0700 (PDT) From: Morgan Gangwere <0.fractalus@gmail.com> To: users@httpd.apache.org In-Reply-To: <813716b60708181104m36aa07bfw29ddff4507d04667@mail.gmail.com> References: <299ebe3f0708180442p5d7f88cap497002b312c61f02@mail.gmail.com> <813716b60708181104m36aa07bfw29ddff4507d04667@mail.gmail.com> Content-Type: text/plain Date: Sat, 18 Aug 2007 14:54:40 -0600 Message-Id: <1187470482.17660.7.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] url rewrite on userIds On Sun, 2007-08-19 at 01:04 +0700, Vincent Bray wrote: > On 18/08/07, Suhaib Ahmad wrote: > > Hello, > > > > For my website i want to implement url rewriting. I'm unable to create > > a RewriteRule > > > > which when given url: http://myUser.domain.com/ > > convert it to http://www.domain.com/action?id=myUser > > What is the purpose of altering the hostname? Are you proxying the > resulting URL, or perhaps confusing mod_rewrite's capabilities? > Eh, wouldnt it just be better to use a vHost that redirects to the proper place? it wouldnt be hard to write a script that does basically this: echo "This page Has been mobbed. please wait while we transfer you..." header("location", "http://www.mydomain.com/action?id=" . [code Here to split out the user id]); -- Morgan Gangwere <0.fractalus@gmail.com> --------------------------------------------------------------------- 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