Need Some Help with an Intelligent Redirect Page

  • Thread starter Thread starter Jeff Holliday
  • Start date Start date
I need a redirect page that will do two things:

If a user goes tohttp://teamsredirect tohttp://sharepoint/Pages/teams.aspx

If a user goes to a sub location replacehttp://teamswithhttp://sharepoint/teams.
For example, a user accesseshttp://teams/app/it/alldocs.aspxbut
redirects tohttp://sharepoint/teams/app/it/alldocs.aspx

Thanks,
Jeff

Hi Jeff,

I think you would need either to write small httphandler for this or
use an existing one, like
http://msdn.microsoft.com/en-us/library/ms972974.aspx

I suppose that http://teams is a host header on the first site and
http://sharepoint is a SharePoint site. Install Url Rewriting engine
and create configuration, e.g.

<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/(.*)</LookFor>
<SendTo>http://sharepoint/teams/$1</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>

I think this should work.
 
Back
Top