httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yehuda Katz <>
Subject Re: [users@httpd] mod_rewrite url has pound (#) symbol
Date Mon, 20 Jan 2014 15:03:06 GMT
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

View raw message