Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm new to sharepoint 2007, currently the home page is htp:// but I would like to use htp:// or have htp:// redirect to the long URL.

How can I do this?

I thought of using a 301 redirect but the permissions on the site in IIS don't allow users to view files placed in the root and I don't want to mess with the permissions. Currently if I visit I see a sharepouint Access Denied page (htp://

Note: I've used htp:// above as serverfault doesn't allow more than 1 https:// link.

Many thanks Steven

share|improve this question

It's been a while since I've worked with it but if you add an Alternate Access Mapping for the shortened URL through CA then in DNS send the connections to that server, it should give you the desired effect.

share|improve this answer

Can you not change the home directory of the Default IIS Site to redirect to /sites/osfc/Pages/Default.aspx ?

If you want http:// to redirect to an https:// you could always change the 403;4 custom error (SSL Required) to redirect to the full URL.

share|improve this answer

There are a number of ways to approach this, but perhaps the easiest way is to create a simple site collection at the root and put a content editor web part in it with the following javascript in it.


If you are interested in shortening other SharePoint URLs then have a look at the URL Shortener for SharePoint.

Note that I worked on this product so the usual disclaimers apply.

share|improve this answer

Use DNS and IIS. I created a few sites in my IIS that do a javascript redirect once they are hit to navigate to the long URL. There is probably an easier way to do this, but this is pretty simple. -->

share|improve this answer

I would try rewriting the URL on the fly using the URL Rewrite Module for IIS.

share|improve this answer

you could just create a site collection under

Open the Central Administration (There is a link in the Start Menu of the Web Frontend)

Then go to Application Management.

There is an entry called Create site collection.

The rest should be self-explaining.

you must be a administrator in this web application though

IMHO redirection with IIS is a bad idea.

If someday a person creates a second site collection on the root path it will not be accessible!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.