Monday, June 8, 2009

SharePoint Welcome Page Redirect To Some Other Application

Scenario: You have several SharePoint web-applications (only only site collections). Whenever a user opens one of those using just an entry-URL (such as http://intranet) you want to redirect him/her to another site collection (not necessarely in the same web-application - for example to http://intranet/my .

This can be achieved in various was:

Create a HttpHandler
If using the Publishing Feature: Create a page derived from "Redirect Page"
...
All of the above have some disadvantages: Either you have to write code, create custom configurations or - in the case of the "Redirect Page", there is a delay that is visible to the user.

I found a very easy way to create a "direct" redirect that requires no code and just uses SharePoint standard functionality.

1. Go to the web you want to create the redirect.
2. If it is a publishing web, go to the "Pages" library, otherwise, you can use any other library that is of type "Document Library"
3. Go to the "List Settings"
4. Ensure that under "Advanced Settings" "Allow management of content types" is set to "yes"
5. In the "Content Types" section click on "Add from existing site content types"
6. Add the "Link to a Document" content type
7. Your content types lis should now include the "Link to a Documet" content type:
8. Back on the list with its items, create a new item of type "Link to Document":
9. Don't forget to publish your link if you have a publishing/approval process setup for your library!
10. Now go to the "Site Settings" of your web and choose in "Look'n'Feel" section "Welcome Page":
Enter your link as the welcome page of this web.

check more details

1 comment:

  1. Brilliant - thankyou I've been trying to get rid of that delay - hoping these are reported on with analytics to enable link tracking

    ReplyDelete