title: angular js index.html to home redirect
body: <p>I am developing a website, when I am typing the url it is directing to index.html even though I used route providers to navigate to home , what am I suppose tot do I have attached my code below,Please got through that and let me know what I need to change, when I called the website address it directly redirects to www.xxyy.com\home</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;title&gt;Bootstrap Example&lt;/title&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
    &lt;link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"&gt;
    &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"&gt;&lt;/script&gt;
    &lt;script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"&gt;&lt;/script&gt;
    &lt;script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"&gt;&lt;/script&gt;
    &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular-route.min.js"&gt;&lt;/script&gt;
    &lt;link rel="stylesheet" type="text/css" href="xploresoftware.css"&gt;
    &lt;script type="text/javascript" src="angularview.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="addressingtabs.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body ng-app="myapp"&gt;
  &lt;nav role="navigation" class="navbar navbar-default navbar-fixed-top" id="navbar"&gt;
      &lt;div class="container-fluid"&gt;
          &lt;!-- Brand and toggle get grouped for better mobile display --&gt;
          &lt;div class="navbar-header"&gt;
              &lt;button type="button" data-target="#navbarCollapse" data-toggle="collapse" class="navbar-toggle"&gt;
                  &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;/button&gt;
              &lt;a href="#/home" class="navbar-brand" id="logo"&gt;&lt;img src="Images/Drawing.png"&gt;&lt;/a&gt;
          &lt;/div&gt;
          &lt;!-- Collection of nav links and other content for toggling --&gt;
          &lt;div id="navbarCollapse" class="collapse navbar-collapse"&gt;
              &lt;ul class="nav navbar-nav" id="subject"&gt;
                  &lt;li&gt;&lt;a href="#/ece"&gt;Electrical Engineering&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#/cs"&gt; Computer Science&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#/mech"&gt; Mechanical Engineering&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
              &lt;ul class="nav navbar-nav navbar-right"&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Login&lt;/a&gt;&lt;/li&gt;
  
              &lt;/ul&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/nav&gt;
  
  
  
   &lt;div class="container-fluid" style="margin-top:55px " &gt;
       &lt;div ng-view&gt;&lt;/div&gt;
  
  
       &lt;/div&gt;
        &lt;/div&gt;
  
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Below is the route provider code:</p>
  
  <pre><code>(function(){
      var app=angular.module('myapp',['ngRoute']); 
   app.config(['$logProvider','$routeProvider',function($logProvider,$routeProvider){
       $locationProvider.hashPrefix();
      $logProvider.debugEnabled(true);
      $routeProvider
      .when('/home',{
          templateUrl:home.html,
      });
      .when('/ece',{
          templateUrl:ece.html,
      });
      .when('/cs',{
          templateUrl:cs.html,
      });
      .when('/mech',{
          templateUrl:mech.html,
      });[question1][1]
      .otherwise({
          redirectTo:'/home',
      })
   }]);
  
  
   }());
  </code></pre>