httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Bowen <rbo...@rcbowen.com>
Subject Re: [users@httpd] mod_rewrite help, # in input url
Date Tue, 21 Jan 2014 18:09:47 GMT

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@rcbowen.com
http://rcbowen.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message