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 909031012C for ; Mon, 20 Jan 2014 15:03:41 +0000 (UTC) Received: (qmail 70511 invoked by uid 500); 20 Jan 2014 15:03:38 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 70491 invoked by uid 500); 20 Jan 2014 15:03:37 -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 70471 invoked by uid 99); 20 Jan 2014 15:03:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jan 2014 15:03:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yehuda@ymkatz.net designates 209.85.160.176 as permitted sender) Received: from [209.85.160.176] (HELO mail-yk0-f176.google.com) (209.85.160.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jan 2014 15:03:29 +0000 Received: by mail-yk0-f176.google.com with SMTP id 131so4493637ykp.7 for ; Mon, 20 Jan 2014 07:03:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:dkim-signature:mime-version:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=Yfk1YVTQFYPT21ZJ5cZzoFmOACNfl8sq/8X1bJ6oaTo=; b=lUmVHytvyq21a0xDxJL2R/XzbAf7QuQc+4Gl+LOWhTDsaFcLr+NDVgS9sNBR0K/DVq xkWIDsl29d9rMZEwmGNWnD+ajsSUZJHKiazYNA/NuC1WqR5vS7A9V2ZXm8jqCyhXQoeQ WO3jNmBuF/PJiytckS2d7SFCDXJW76/OaGFat47nQwLDFOF173o5Vn5YrYDEpc2T5bv7 jXHpd+oWSwB4ve3p7eZMODETIexAVSkFRQmiJNL+N4iHDpnTowgC6E8vZHJAmQK1LxOk onSJFDjpwKcb7dCaft4pqqJVsAG+O5v6ss6DPFEN7w+CsSRGCWwh+RcHx20yz6Zl5Kuc GkSg== X-Gm-Message-State: ALoCoQmEOTCkUGnVAAOvR28sZ+SabaLvlyd8QCmZAj3gFNs5IDktiC3gDuWoKJzIZwIjJZ57SF6L X-Received: by 10.236.42.231 with SMTP id j67mr1087766yhb.131.1390230187976; Mon, 20 Jan 2014 07:03:07 -0800 (PST) Received: from mail-ie0-x22f.google.com (mail-ie0-x22f.google.com [2607:f8b0:4001:c03::22f]) by mx.google.com with ESMTPSA id e50sm2844529yhd.26.2014.01.20.07.03.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Jan 2014 07:03:07 -0800 (PST) Received: by mail-ie0-f175.google.com with SMTP id ar20so3654414iec.20 for ; Mon, 20 Jan 2014 07:03:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymkatz.net; s=g; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Yfk1YVTQFYPT21ZJ5cZzoFmOACNfl8sq/8X1bJ6oaTo=; b=jAZ2fF5tpFeDYmNLt5AbB3DPJ3VD4uYAP4ErzIUlj5xc56/KYrsg9fytujEGhC8lpc 9SydPt7odxqrMhevQ8zO9OtqPJXsOwaHpY70tbUkF5mXPFixqgZSuEnAO7oivN6qzyAi z+2ZrrkO20ZJNZCmSP44hDF9wwrVynIHtLgHs= MIME-Version: 1.0 X-Received: by 10.50.3.101 with SMTP id b5mr12730047igb.6.1390230187022; Mon, 20 Jan 2014 07:03:07 -0800 (PST) Received: by 10.42.54.82 with HTTP; Mon, 20 Jan 2014 07:03:06 -0800 (PST) Received: by 10.42.54.82 with HTTP; Mon, 20 Jan 2014 07:03:06 -0800 (PST) In-Reply-To: References: Date: Mon, 20 Jan 2014 10:03:06 -0500 Message-ID: From: Yehuda Katz To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=089e013c64ec74244e04f068307d X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mod_rewrite url has pound (#) symbol --089e013c64ec74244e04f068307d Content-Type: text/plain; charset=ISO-8859-1 The part of the URL after the # is not sent to the server, so it is not possible to match on it. Anyway, if you just remove it from your pattern, you should get the same result since you do not appear to be trying to match on anything after it. - Y Sent from a gizmo with a very small keyboard and hyperactive autocorrect. On Jan 19, 2014 1:56 AM, "Ayub Khan" wrote: > > My url has # in the url. Could some one suggest how to use this to > redirect. I do not have control over how the url is being generated as its > a software product. The below rule does not seem to work. > > RewriteRule ^(/share/page/repository#)$ > /share/page/context/mine/myfiles [B,R] > > > I tried to escape the hash with [^c], but it does not seem to work..Any > clues on how to handle *" # "* > > Thanks > Ayub > --089e013c64ec74244e04f068307d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

The part of the URL after the # is not sent to the server, s= o it is not possible to match on it. Anyway, if you just remove it from you= r pattern, you should get the same result since you do not appear to be try= ing to match on anything after it.

- Y

Sent from a gizmo with a very small keyboard and hyperactive= autocorrect.

On Jan 19, 2014 1:56 AM, "Ayub Khan" &= lt;ayub.hp@gmail.com> wrote:

My url has # in the url. Could some= one suggest how to use this to redirect. I do not have control over how th= e url is being generated as its a software product. The below rule does not= seem to work.

RewriteRule =A0 =A0^(/share/page/repository#)$ =A0/shar= e/page/context/mine/myfiles =A0[B,R]


I tried to escape the hash with [^c], but it does not seem to work..A= ny clues on how to handle " # "

Thanks
Ayub
--089e013c64ec74244e04f068307d--