Need Some Help with an Intelligent Redirect Page

A

Alexey Smirnov

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top