Asp.Net4.0中的URL重写 [英] URL Rewriting in Asp.Net4.0
本文介绍了Asp.Net4.0中的URL重写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友们好,
如何将网址 http://xyz.com/aboutus-overview.aspx 更改为 http://xyz.coom/about/overview.aspx
通过asp.net 4.0中的URLRewriting。
喜欢:
Click Me
点击上面的链接浏览器网址只显示http://xyz.com/aboutus-overview.aspx
但我必须将其更改为http://xyz.coom/about/ overview.aspx
谢谢。
Hello friends,
How to change the URL http://xyz.com/aboutus-overview.aspx to http://xyz.coom/about/overview.aspx
through URLRewriting in asp.net 4.0.
Like:
Click Me
on clicking the above link browsers url will show just http://xyz.com/aboutus-overview.aspx
but i have to change it to http://xyz.coom/about/overview.aspx
Thanks.
推荐答案
var str="http://xyz.com/aboutus-overview.aspx"
str=str.replace("-","")
这篇关于Asp.Net4.0中的URL重写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文