简体   繁体   中英

How do I remove the “number/hash/pound/#” sign from the destination rewrite URL in Helicon ISAPI Rewrite?

I have the following rewrite rule set up:

RewriteRule /ProductF12.aspx$ /womens-jackets/l/20 [I,O,RP,L]

Problem:

When someone hits:

/ProductF12.aspx?ProductId=7814&lang=en&colour=950%7C666666&mc=yes#sthash.oYnetaAi.qjtu

It goes to:

/womens-jackets/l/20#sthash.oYnetaAi.qjtu

Question: As you can see, the Query string is removed but everything after the " # " sign remains.

How do I remove the extra #sthash.oYnetaAi.qjtu from the destination URL?

URL中以#开头的部分没有到达服务器,而是由浏览器设置的,因此ISAPI_Rewrite对此无能为力。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM