Re: mod_rewrite url has pound (#) symbol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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" <ayub.hp@xxxxxxxxx> 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

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux