Question: I recently set up a website on azurewebsites.net.

But when I go to the url http:/website.azurewebsites.net/
it doesn't load.

But when I go to http:/website.azurewebsites.net/home.aspx it loads.

What I want is that
if a user goes to http:/website.azurewebsites.net/ it loads with the home.aspx content or get redirected to http:/website.azurewebsites.net/home.aspx

This doesn't work 

```
 <system.webServer>
   <defaultDocument>
     <files>
       <clear />
       <add value="Default.aspx" />
     </files>
   </defaultDocument>
  </system.webServer>

```

Sorry here's the actual link <http://rathgarfantasyhockey.azurewebsites.net/default.aspx> which works fine, but when you go to <http://rathgarfantasyhockey.azurewebsites.net> HTTP error 404, `The resource cannot be found` is displayed.

Can anyone help??

Answer: 
If you are using MVC or Web API, add the following line in RegisterRoutes():

```
   routes.IgnoreRoute(""); 

```

This solved my problem. Hope it helps you.
If you app is a MVC application, it looks for the default controller instead of default pages.

So you must map a route in RouteConfig. In my case,I wanted to load the site with an index.html page, so I did:

RouteConfig.cs file:

```
 public static void RegisterRoutes(RouteCollection routes)
    {
        routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

        routes.MapRoute(
            name: "Default",
            url: "{controller}/{action}/{id}",
            defaults: new { controller = "Home", action = "Index", id =    UrlParameter.Optional }
        );
    }

```

And in my HomeController, Index Action, write this code:

```
public ActionResult Index()
    {
        return Redirect("/index.html");
    }

```

This works fine in Azure with a Shared Site. I hope this will help you.