HTML page as a landing page before entering SharePoint

Do you for some reason you would like to have a landingpage to be displayed before a visitor enters the SharePoint site? This post gives an option to do just that.

What we need to do is to set a new folder where visitors “land”. There you will have created an index.html that suits you.

First make sure your new index.html is ready and works fine. On that page you can add a link back to the SharePoint site. (I used /Pages/Default.aspx)
You can test your new page by entering /LandingPage/Index.html after the url of your SharePoint site. (http://www.contoso.com/LandingPage/Index.html)

To set the new folder we’re going to edit the web.config of the SharePoint site. You can find this file in the <systemdrive>\inetpub\wwwroot\wss\VirtualDirectories\<sitename>
But remember to make backup copies before making any changes.

Right under <system.web> enter these three lines:
<urlMappings enabled=”true”>
<add url=”~/” mappedUrl=”/LandinPage/Index.html”/>
</urlMappings>

Replace LandingPage/Index.html with the folder and name of your html page.

Save the web.config and restart the iis. (iisreset from the command prompt)