为查询字符串重写IIS规则

为查询字符串重写IIS规则,iis,url-rewriting,Iis,Url Rewriting,我有一个URL,看起来像 https://thesite.com/m/?pageName=profileSettings#notifications 我需要把它改写成 https://thesite.com/m/?pageName=notificationSettings 我在尝试类似的东西 <rule name="m_notifications" stopProcessing="true"> <match ur

我有一个URL,看起来像

https://thesite.com/m/?pageName=profileSettings#notifications   
我需要把它改写成

https://thesite.com/m/?pageName=notificationSettings
我在尝试类似的东西

            <rule name="m_notifications" stopProcessing="true">
                <match url="^m/(.*)" />
                <conditions>
                    <add input="{QUERY_STRING}" pattern="pageName=profileSettings#notifications" />
                </conditions>
                <action type="Rewrite" url="pageName=notificationSettings" appendQueryString="False"/>
            </rule>
这不起作用,没有错误,只是没有做任何更改。我错过了什么


谢谢

无法基于哈希字符串进行重写。浏览器不会将散列后的部分传输到服务器


它被称为,只是客户端。这在任何语言中都是不可能的,除非您使用某种浏览器实现或软件将URL的这一部分发送到服务器

这就是为什么它不起作用的原因。谢谢你的回答。至少我知道我没有发疯。