{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/13004","labels_url":"https://api.github.com/repos/angular/angular.js/issues/13004/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/13004/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/13004/events","html_url":"https://github.com/angular/angular.js/issues/13004","id":109606807,"number":13004,"title":"Not getting the requested page after reload window using angular.js","user":{"login":"subhrajyotiw5rtc","id":6679222,"avatar_url":"https://avatars.githubusercontent.com/u/6679222?v=3","gravatar_id":"","url":"https://api.github.com/users/subhrajyotiw5rtc","html_url":"https://github.com/subhrajyotiw5rtc","followers_url":"https://api.github.com/users/subhrajyotiw5rtc/followers","following_url":"https://api.github.com/users/subhrajyotiw5rtc/following{/other_user}","gists_url":"https://api.github.com/users/subhrajyotiw5rtc/gists{/gist_id}","starred_url":"https://api.github.com/users/subhrajyotiw5rtc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subhrajyotiw5rtc/subscriptions","organizations_url":"https://api.github.com/users/subhrajyotiw5rtc/orgs","repos_url":"https://api.github.com/users/subhrajyotiw5rtc/repos","events_url":"https://api.github.com/users/subhrajyotiw5rtc/events{/privacy}","received_events_url":"https://api.github.com/users/subhrajyotiw5rtc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-03T06:51:04Z","updated_at":"2015-10-03T06:51:04Z","closed_at":null,"body":"I am facing one issue.when i am clicking the``` <li><a href=\"course\">Course</a></li>``` link i am getting the requesting page but when i am refreshing this page again it is not coming using angular.js.its shoqing me the error The requested URL``` /Gofast/subject was not found on this server.```.I am getting my home page by typing the url ```oditek.in/Gofast/```.I am explaining my code below.\r\n\r\napp.js:\r\n\r\n```\r\nvar GoFastoApp=angular.module('GofastoHome',['ngRoute']);\r\nGoFastoApp.config(function($routeProvider,$locationProvider) {\r\n    $routeProvider\r\n    .when('/',{\r\n        templateUrl : 'view/home.html',\r\n        controller  : 'homecontroller'\r\n    })\r\n    .when('/deptinfo',{\r\n        templateUrl : 'view/info.html',\r\n        controller  : 'infocontroller'\r\n    })\r\n    .when('/TimeTable',{\r\n        templateUrl : 'view/time.html',\r\n        controller  : 'timecontroller'\r\n    })\r\n    .when('/course',{\r\n        templateUrl : 'view/course.html',\r\n        controller  : 'coursecontroller'\r\n    })\r\n    .when('/subject',{\r\n        templateUrl : 'view/subject.html',\r\n        controller  : 'subjectcontroller'\r\n    })\r\n    .when('/hod',{\r\n        templateUrl : 'view/hod.html',\r\n        controller  : 'hodcontroller'\r\n    })\r\n    .when('/faculty',{\r\n        templateUrl : 'view/faculty.html',\r\n        controller  : 'facultycontroller'\r\n    });\r\n    $locationProvider.html5Mode({\r\n      enabled: true,\r\n      requireBase: true\r\n    });\r\n})\r\n```\r\n\r\nindex.html:\r\n\r\n```\r\n<!DOCTYPE html>\r\n<html lang=\"en\" ng-app=\"GofastoHome\">\r\n<head>\r\n\r\n    <meta charset=\"utf-8\">\r\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n    <meta name=\"description\" content=\"\">\r\n    <meta name=\"author\" content=\"\">\r\n    <title>...:::WELCOME TO Channabasavashwara Institude of Technology:::...</title>\r\n\r\n    <!-- PACE LOAD BAR PLUGIN - This creates the subtle load bar effect at the top of the page. -->\r\n    <link href=\"css/pace.css\" rel=\"stylesheet\">\r\n    <script src=\"js/pace.js\"></script>\r\n    <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js\"></script>\r\n    <script data-require=\"lodash.js@*\" data-semver=\"2.4.1\" src=\"http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js\"></script><script src=\"js/angularjs.js\" type=\"text/javascript\"></script>\r\n<script src=\"js/angularroute.js\" type=\"text/javascript\"></script>\r\n<script src=\"controller/app.js\" type=\"text/javascript\"></script>\r\n</head>\r\n<body>\r\n<nav class=\"navbar navbar-default navbar-fixed-top\"  style=\"margin-top:50px\">\r\n      <div class=\"container\" style=\"width:1270px;\">\r\n        <div class=\"navbar-header navbar-brand\">\r\n        Computer Science & Engineering\r\n        </div>\r\n        <div id=\"navbar\" class=\"navbar-collapse collapse\">\r\n          <ul class=\"nav navbar-nav\">\r\n            <li class=\"active\"><a href=\"/Gofast/\">Home</a></li>\r\n            <li class=\"dropdown\">\r\n              <a href=\"/Gofast/\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" role=\"button\" aria-haspopup=\"true\" aria-expanded=\"false\">Edit <span class=\"caret\"></span></a>\r\n              <ul class=\"dropdown-menu\">\r\n                <li><a href=\"course\">Course</a></li>\r\n                <li><a href=\"subject\">Subject</a></li>\r\n                <li><a href=\"/hod\">HOD</a></li>\r\n                <li role=\"separator\" class=\"divider\"></li>\r\n                <li class=\"dropdown-header\">Nav header</li>\r\n                <li><a href=\"/faculty\">Faculty</a></li>\r\n                <li><a href=\"#\">One more separated link</a></li>\r\n              </ul>\r\n            </li>\r\n            <li><a href=\"#\">Department</a></li>\r\n            <li><a href=\"#contact\">Time Table</a></li>\r\n\r\n          </ul>\r\n          </div><!--/.nav-collapse -->\r\n      </div>\r\n    </nav>\r\n<script src=\"controller/HomeController.js\" type=\"text/javascript\"></script>\r\n   <script src=\"controller/CourseController.js\" type=\"text/javascript\"></script>\r\n<base href=\"/Gofast/\">\r\n</body>\r\n</html>\r\n```\r\nHere when i am clicking on the course option the required page is coming but when i am reloading the same page again the its throwing the above error.Later i followed some instruction.I created one server.htaccess. file and placed it into root folder.I added the below code into this file.\r\n\r\n```\r\n# Don't rewrite files or directories\r\nRewriteCond %{REQUEST_FILENAME} -f [OR]\r\nRewriteCond %{REQUEST_FILENAME} -d\r\nRewriteRule ^ - [L]\r\n\r\n# Rewrite everything else to index.html to allow html5 state links\r\nRewriteRule ^ index.html [L]\r\n```\r\nstill i am unable to clear this issue.Please help me to resolve this issue."}}