httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <>
Subject Re: [users@httpd] mod_rewrite help, # in input url
Date Tue, 21 Jan 2014 21:17:57 GMT
On Tue, Jan 21, 2014 at 4:02 PM, Ayub Khan <> wrote:
> Thank you for the reply. I want to match the text which is  follows #  and
> grab a substring from it. Not sure if its possible with mod_rewrite ?

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

Eric Covener

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message