Re: mod_rewrite help, # in input url

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

 




On 01/17/2014 12:49 PM, Ayub Khan wrote:
 Could some one assist me with creating a rewrite rule in httpd 2.2.4?

http://localhost:8080/share/page/repository#filter=path%7C%2FUser%25Homes%2F<2ALFANUMERIC>%2F<ALFANUMERIC>%2F<DYNAMICTEXT>%7C&page=1

http://localhost:8080/share/page/context/mine/myfiles#filter=path%2F<2ALFANUMERIC>/<ALFANUMERIC>%2F<DYNAMICTEXT>

Below is sample:

http://localhost:8080/share/page/repository#filter=path%7C%2FUser%2520Homes%2Fm8%2Fm84448%2FTestFolder%7C&page=1

http://localhost:8080/share/page/context/mine/myfiles#filter=path%2Fm8%2Fm84448

I tried to do the rewrite rule however # in the base rule does not seem to valid

Have a look at the access log. You'll notice that anything after the # isn't actually sent with the request to the server, but is, rather, a client-side "anchor", processed by the browser to find an anchor in HTML markup.

Thus, you're not going to be able to write rewrite rules to handle this.

Consider, instead, using '?' to pass additional arguments in the query string

--
Rich Bowen
rbowen@xxxxxxxxxxx
http://rcbowen.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[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