编写快捷方式URL [英] Writing a shortcut URL
本文介绍了编写快捷方式URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这应该不是一个很难回答的问题.我想知道如何编写一个使用长URL并使用网站的快捷方式,使用一个非常长且复杂的URL并按如下所示重定向它:
http://www.mysite.com/newurl
就像tinyurl.com一样,这应该将用户带到另一个网站.在现有站点上做到这一点并非难事.我该怎么办?
鲍勃·德莱尼(Bob Delaney)
安大略省密西沙加
[已删除电子邮件ID]
This should not be a difficult question to answer. I''d like to know how to write a shortcut that takes a long URL and using a web site, take a very long and complex URL and redirect it as follows:
http://www.mysite.com/newurl
This should take the user to another web site, much as tinyurl.com does. This can''t be hard to do on an existing site. How do I do that?
Bob Delaney
Mississauga, Ontario
[email-id removed]
推荐答案
重写网址 [ ^ ]可能有用.
或 CP存档项目 [
Rewriting Url[^] may be useful.
Or CP Archive Item[^] may help.
正如DD所说,您需要 URL重写.
带有示例的文章,请阅读此处:使用ASP.NET进行URL重写 [ URL路由 [
As DD has already said, you need URL Rewriting.
Articles with sample, read here: URL Rewriting with ASP.NET[^]
OR
Read about, In ASP.NET 4.0: URL Routing[^]
这篇关于编写快捷方式URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文