How to remove last character in request url using

2019-07-22 19:06发布

I need to remove last character(#) in request url using apache. Example www.example.com/test/test?data=value1,value2,value3#

how to remove # value in the url. (OR) Make apache to allow #.

Now i am getting 400 response in apache.

1条回答
该账号已被封号
2楼-- · 2019-07-22 19:28

# is reserved character according to rfc3986 section-2.2 and it seems there is no way to make Apache ignore it, it will throw error 400 immediately when it gets the request (even without waiting for headers to arrive). Your best bet may be to write simple custom reverse proxy that will strip that character before forwarding the request to Apache httpd.

查看更多
登录 后发表回答