开发者

Friendly URL vs ugly querystring URL SharePoint, HTTPModule?

开发者 https://www.devze.com 2023-03-04 07:22 出处:网络
I am developing an application in SharePoint 2010. What now I have to resolve is the following: I have a list of news. Each one has an ID and Title.

I am developing an application in SharePoint 2010.

What now I have to resolve is the following: I have a list of news. Each one has an ID and Title.

I have one SharePoint page that knows how to display them.

I need that instead of linking each news as: http://sharepoint/news/viewnews.aspx?title=MySharePointNews01

Be as the following: http://sharepoint/news/MySharePointNews01

I think tha writing an HttpModule and doing Server.T开发者_运维知识库ransfer to the Viewnews.aspx will accomplish this.

Any recommendations?

Thanks in advance.


Have a look at the IIS URL Rewrite module. It will do exactly what you are looking for without having to write any code. This article explains it pretty clear:

http://learn.iis.net/page.aspx/461/creating-rewrite-rules-for-the-url-rewrite-module/

You can download IIS URL Rewrite here: http://www.iis.net/download/urlrewrite

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号