Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 88902 invoked from network); 12 Jul 2007 14:07:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jul 2007 14:07:00 -0000 Received: (qmail 71823 invoked by uid 500); 12 Jul 2007 14:06:50 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 71799 invoked by uid 500); 12 Jul 2007 14:06:50 -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 71788 invoked by uid 99); 12 Jul 2007 14:06:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 07:06:50 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of m.watts@eris.qinetiq.com designates 128.98.1.9 as permitted sender) Received: from [128.98.1.9] (HELO mailr.qinetiq-tim.net) (128.98.1.9) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 07:06:46 -0700 Received: from mailhost.eris.qinetiq.com (mailhost.eris.qinetiq.com [128.98.2.2]) by mailr.qinetiq-tim.net (Postfix) with SMTP id 097EF12B6A8 for ; Thu, 12 Jul 2007 15:06:24 +0100 (BST) Received: (qmail 17576 invoked from network); 12 Jul 2007 14:06:23 -0000 Received: from unknown (HELO mwatts.eris.qinetiq.com) (128.98.10.176) by ins1.eris.qinetiq.com with SMTP; 12 Jul 2007 14:06:23 -0000 Received: from localhost (localhost [127.0.0.1]) by mwatts.eris.qinetiq.com (Postfix) with ESMTP id 033E11033B; Thu, 12 Jul 2007 15:06:23 +0100 (BST) From: Mark Watts Organization: QinetiQ To: users@httpd.apache.org Date: Thu, 12 Jul 2007 15:06:22 +0100 User-Agent: KMail/1.8.2 Cc: "Naveen Sharma" References: <469631E0.3000606@x0f.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1270761.9Dv0naVfyB"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200707121506.22667.m.watts@eris.qinetiq.com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Maintaing the URL when Rewriting --nextPart1270761.9Dv0naVfyB Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > Hi Scott, > > > I want the URL to be visible as > http://dev.home.en/hawaii-hotels but internally it should use > http://dev.home.en/action?city=3Dhawaii. > > I have used this > RewriteEngine On > RewriteRule ^/([a-zA-Z]*)(-)(hotels)/ http://%{HTTP_HOST}/action?city=3D= $1 Rewriting to an external host (which is what an http:// URL is) forces an=20 implicit redirect. The originally suggested RewriteRule did not use http://%{HTTP_HOST} for th= is=20 reason. Mark. =2D-=20 Mark Watts BSc RHCE MBCS Senior Systems Engineer QinetiQ Trusted Information Management Trusted Solutions and Services Group GPG Key: http://keyserver.veridis.com:11371/search?q=3D0x455420ED --nextPart1270761.9Dv0naVfyB Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBGljVeBn4EFUVUIO0RArpcAKDbLmW89YuibkoMQ/kAVB3vmxVEOgCeKPPn 414hIEoWAQvhEyWNflxiE+Q= =6Q0R -----END PGP SIGNATURE----- --nextPart1270761.9Dv0naVfyB--