需要帮助使用Urlrewritingnet重写url [英] Need help rewrite url usingUrlrewritingnet

查看:68
本文介绍了需要帮助使用Urlrewritingnet重写url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

各位大家好,



我为我的ASP.net网站改写了URL,我正在使用Urlrewritingnet



任何人都可以帮助我如何重写下面的网址规则



 destinationUrl =  〜/ Catalog.aspx?CategoryID = $ 1 



我怎么样?重写规则为这个



这是我的网址格式字符串



 http: //   www.ngocclio.com/Loai-San-Pham/Xit-khoang-21 /  





在上面这个网址:21是一个ID



/ Loai-San-Pham / Xit-Khoang ==>只是一个名字,我想熟悉谷歌:D(类似的东西)



所以任何人都可以帮我写一个规则吗?



< add name =  重写  virtualUrl =  有人帮助我!!! rewriteUrlParameter =   ExcludeFromClientQueryString destinationUrl =  〜/ Catalog.aspx?CategoryID = $ 1 ignoreCase =   true /> 





如果有两个参数怎么写规则?



这是我的格式网址字符串



 http: //   www.ngocclio.com/Loai-San-Pham/Xit-khoang-21/Page-12  





@After Page:12是ID



谢谢。我被困在这里太久了。我自己学习,所以我没有人要问!

解决方案

1



我怎么改写这个规则



这是我的网址格式字符串



 http: //   www.ngocclio.com/Loai-San-Pham/Xit-khoang- 21 /  





在上面这个网址:21是一个ID



/ Loai-San-Pham / Xit-Khoang ==>只是一个我想熟悉谷歌的名字:D(类似的东西)



所以任何人都可以帮我写一个规则吗?



< add name =  重写 virtualUrl =  一些一个人在这帮助我!!! rewriteUrlParameter =   ExcludeFromClientQueryString destinationUrl =  〜/ Catalog.aspx?CategoryID = 


1 ignoreCase = true />





如果有两个参数怎么写规则?



这是我的格式url字符串



 http: //   www.ngocclio.com/ Loai-San-Pham / Xit-khoang-21 / Page-12  





@After Page:12 is ID



谢谢。我被困在这里太久了。我自己学习,所以我没有人要问!


我找到了一些有用的文章。请检查一下。祝你好运! :)



使用URLRewriter在Asp.net中重写URL



如何使用ASP.NET实现和利用URL重写

Hello everybody ,

I'm rewrite URL for my ASP.net website and I'm using Urlrewritingnet

Could anyone help me how to rewrite the rule for url below

destinationUrl= "~/Catalog.aspx?CategoryID=$1"


How am i rewrite the rule for this

This is my url format string

http://www.ngocclio.com/Loai-San-Pham/Xit-khoang-21/



In this url above : 21 is a ID

/Loai-San-Pham/Xit-Khoang ==> just a name i want to familiar with Google :D (something like that )

so can any one help me write a rule for this ?

<add name= "rewrite" virtualUrl= "Some one help me here !!!" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl= "~/Catalog.aspx?CategoryID=$1" ignoreCase= "true"/>



And how to write a rule when have two parameter ?

Here is my format url string

http://www.ngocclio.com/Loai-San-Pham/Xit-khoang-21/Page-12



@After Page : 12 is ID

Thank you . I'm stuck righ here too long . I'm study by myself so I dont have anyone to ask !

解决方案

1"


How am i rewrite the rule for this

This is my url format string

http://www.ngocclio.com/Loai-San-Pham/Xit-khoang-21/



In this url above : 21 is a ID

/Loai-San-Pham/Xit-Khoang ==> just a name i want to familiar with Google :D (something like that )

so can any one help me write a rule for this ?

<add name= "rewrite" virtualUrl= "Some one help me here !!!" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl= "~/Catalog.aspx?CategoryID=


1" ignoreCase= "true"/>



And how to write a rule when have two parameter ?

Here is my format url string

http://www.ngocclio.com/Loai-San-Pham/Xit-khoang-21/Page-12



@After Page : 12 is ID

Thank you . I'm stuck righ here too long . I'm study by myself so I dont have anyone to ask !


I have found some useful articles for you.Please check that.Good Luck ! :)

URL Rewriting in Asp.net using URLRewriter

How to Implement and Utilize URL Rewriting with ASP.NET


这篇关于需要帮助使用Urlrewritingnet重写url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆