Asp.net 如何重写查询字符串URL';DNN中的s
我正在使用DNN(DotNetNuke)6,我有如下URLAsp.net 如何重写查询字符串URL';DNN中的s,asp.net,c#-4.0,url-rewriting,dotnetnuke,Asp.net,C# 4.0,Url Rewriting,Dotnetnuke,我正在使用DNN(DotNetNuke)6,我有如下URL http://localhost/Training/rpscategory.aspx?P=Oracle&Cat=Middleware 我想重写上面的url,比如 http://localhost/Training/Oracle/Middleware http://localhost/Training/Oracle/Middleware/Monitor-and-Performance 及 我想重写上面的url,比如 http
http://localhost/Training/rpscategory.aspx?P=Oracle&Cat=Middleware
我想重写上面的url,比如
http://localhost/Training/Oracle/Middleware
http://localhost/Training/Oracle/Middleware/Monitor-and-Performance
及
我想重写上面的url,比如
http://localhost/Training/Oracle/Middleware
http://localhost/Training/Oracle/Middleware/Monitor-and-Performance
如何做到这一点
提前感谢
UrlRouting更有用,也更容易理解。请参见此链接。这肯定会对你有帮助
第二选项
UrlRewrite选项在IIS中也很容易使用。IIS将其作为内置功能提供。
您只需将url重写添加到可以从网络下载的iis中,然后在iis中添加您的url(url重写),它将自动更改您的网络配置,并将url转换为用户友好的url
:-)我已经通过使用实现了在DNN中重写查询字符串URL