Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 320BA17922 for ; Mon, 3 Nov 2014 23:16:12 +0000 (UTC) Received: (qmail 83318 invoked by uid 500); 3 Nov 2014 23:16:08 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 83283 invoked by uid 500); 3 Nov 2014 23:16:08 -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 83273 invoked by uid 99); 3 Nov 2014 23:16:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2014 23:16:08 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jjohnson@smoothlinux.com designates 23.89.159.13 as permitted sender) Received: from [23.89.159.13] (HELO mail.smoothlinux.com) (23.89.159.13) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2014 23:16:03 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.smoothlinux.com (Postfix) with ESMTP id 54BA74AE0ED for ; Mon, 3 Nov 2014 17:14:40 -0600 (CST) X-Virus-Scanned: Debian amavisd-new at mail.smoothlinux.com Received: from mail.smoothlinux.com ([23.89.159.13]) by localhost (ns2.smoothlinux.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O6OH7YG7pGY5 for ; Mon, 3 Nov 2014 17:14:36 -0600 (CST) Received: from [10.3.10.124] (unknown [66.150.208.129]) by mail.smoothlinux.com (Postfix) with ESMTPA id 9B1874AE0A7 for ; Mon, 3 Nov 2014 17:14:36 -0600 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=smoothlinux.com; s=smoothlinux.com; t=1415056476; bh=aD5PYPSJfgVLaCql7sEh5I4baLGHk1SfCI/joqzSouk=; h=Date:From:To:Subject:From; b=bkq+vrN5gqTBeY6LSlpdBTDqbIbBaDpiEXPUo/EyhnRLeikzaxqvotZbBls7maPRu h6kPJJcRXTvKe6u1GQluB4+UyZZRFFeXmOtNubDybzNEw2vsvLFPtLSkWxmrGi92ln LmXBqLYAEHsweBxBGdgsJGF9u6H15U+J/AcMuCxCq7a7xRu3jEOdBi/7LHKRkwThOx 0h4/5yd+llWVClEgu/b2ak46o3OOWIX3IVGia908WbmxqRicYvQf7n2H4dtxARpWU8 pakbaS6sDG3dIY85hYS5NWMWIi0nA7n6ycaXMXat9uWMpDvMLboakkz6MCPqaiWhce BDLfdTt048W5g== Message-ID: <54580DBD.4060506@smoothlinux.com> Date: Mon, 03 Nov 2014 17:20:29 -0600 From: Jason Johnson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Rewrite A URL with a Questions Mark I want to rewrite a URL with a questions mark and I'm having alot of trouble getting this working. My requirement is that I have to do a match on the %{HTTP_HOST} first and from there I need to do a rewrite to a static URL. URL Request looks like this: http://site.com/iddetail.php?id=88888 What I have tired up to this point: Rewritecond %{HTTP_HOST} ^site.com [NC] ^(.*)iddetail\.php\?id=([0-9]+)$ https://www.site.com/results.html#/newsite [R=301,NE,L] The results that I see from this rewrite rules is: https://www.site.com/?id=8888 I have also tried: Rewritecond %{HTTP_HOST} ^site.com [NC] ^(.*)iddetail\.php$ https://www.site.com/results.html#/newsite [R=301,NE,L] The result is: https://www.site.com/results.html#/newsite/?id=8888 Any help with this would be apprehended. Thank You, --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org