Home | Blog | Screencasts | Projects
# Monday, October 20, 2008

Scott Hanselman recently posted about the IIS 7 Rewrite module and how easy it is to setup and use, he covers the topic extensively, I just wanted to point out that this tool will also work with SharePoint.

I was recently in a position where the marketing guys had decided that the URL should be the promotion name of the marketing campaign, but it was both impractical and impossible (the URL had to point to a survey) to create a page in SharePoint that would suit their needs. Since the site was running IIS 7 we used the IIS 7 Rewrite module.

For example:

Say the requested URL was:  http://server/marketing/promo/

But we needed to post to:  http://server/Lists/Marketing Survey 1/overview.aspx

 

The first step after installing the rewrite module is to create a ‘Rule with rewrite map’:

 

rule1

 

Then choose the rule action type, in this case it is a rewrite action, give it a meaningful name:

 

rule2

 

Then add the mapping (right click in the panel that gets opened after the last step), the Original value is the URL you want your users to navigate to:

 

rule3

 

That’s it your done, now you can browse to your URL and your users will end up in the correct location:

 

endresult

Monday, October 20, 2008 8:48:00 PM (E. Australia Standard Time, UTC+10:00)  #    Comments [0] - Trackback
IIS 7 | Sharepoint | Tip
Statistics
Total Posts: 134
This Year: 0
This Month: 0
This Week: 0
Comments: 20