HTML page as a landing page before entering SharePoint

Do you for some rea­son you would like to have a land­ing­page to be dis­played before a vis­i­tor enters the Share­Point site? This post gives an option to do just that.

What we need to do is to set a new fold­er where vis­i­tors “land”. There you will have cre­at­ed 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 Share­Point site. (I used /Pages/Default.aspx)
You can test your new page by enter­ing /LandingPage/Index.html after the url of your Share­Point site. (

To set the new fold­er we’re going to edit the web.config of the Share­Point site. You can find this file in the <systemdrive>\inetpub\wwwroot\wss\VirtualDirectories\<sitename>
But remem­ber to make back­up copies before mak­ing any changes.

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

Replace LandingPage/Index.html with the fold­er and name of your html page.

Save the web.config and restart the iis. (iis­re­set from the com­mand prompt)