Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 如何重写查询字符串URL';DNN中的s_Asp.net_C# 4.0_Url Rewriting_Dotnetnuke - Fatal编程技术网

Asp.net 如何重写查询字符串URL';DNN中的s

Asp.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

我正在使用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://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