URL 重写 ASP.NET ( UrlRewriter.net )
重写了以下 URL
/category/games/21
好的,我们使用 UrlRewriter.net使用以下表达式
<rewrite url="~/Category/(.+)/(.+)" to="~/category.aspx?CatId=$2" />
。但是谷歌可以附加以下内容,
/category/games/21?gclid=clickIdHere
这需要重写为,
/category.aspc?CatId=21&gclid=clickIdHere
任何人都可以帮助建议一个适用于上述内容的表达式吗?
我想像...
<rewrite url="~/Category/(.+)/(.+)?gclid=(.+)" to="~/category.aspx?
CatId=$2&gclid=$3" />
Ok we have the following re-written URL using UrlRewriter.net
/category/games/21
using the following expression.
<rewrite url="~/Category/(.+)/(.+)" to="~/category.aspx?CatId=$2" />
however google can attach the following,
/category/games/21?gclid=clickIdHere
this would need to be re-written to,
/category.aspc?CatId=21&gclid=clickIdHere
Can anyone help suggest an expression that will work with the above?
I suppose somthing like...
<rewrite url="~/Category/(.+)/(.+)?gclid=(.+)" to="~/category.aspx?
CatId=$2&gclid=$3" />
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应该像
should be like