{"action":"created","issue":{"url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/540","labels_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/540/labels{/name}","comments_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/540/comments","events_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/540/events","html_url":"https://github.com/Swiip/generator-gulp-angular/issues/540","id":76231887,"number":540,"title":"gulp serve and gulp:serve:dist work well, but copy the dist folder to sever cause 404.0 error","user":{"login":"astw","id":4297100,"avatar_url":"https://avatars.githubusercontent.com/u/4297100?v=3","gravatar_id":"","url":"https://api.github.com/users/astw","html_url":"https://github.com/astw","followers_url":"https://api.github.com/users/astw/followers","following_url":"https://api.github.com/users/astw/following{/other_user}","gists_url":"https://api.github.com/users/astw/gists{/gist_id}","starred_url":"https://api.github.com/users/astw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astw/subscriptions","organizations_url":"https://api.github.com/users/astw/orgs","repos_url":"https://api.github.com/users/astw/repos","events_url":"https://api.github.com/users/astw/events{/privacy}","received_events_url":"https://api.github.com/users/astw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-14T04:56:50Z","updated_at":"2015-05-14T15:49:21Z","closed_at":"2015-05-14T15:49:21Z","body":"I'm using windows 7. Latest generator-gulp-angular (yesterday version).  gulp serve and gulp:serve:dist work well,  when make dist folder a IIS server folder,  only default page works,  the other page causes 404.0 \r\n\r\nurl:  \r\nhttp://localhost:801/en-us/reminder/acer/install \r\n\r\nHTTP Error 404.0 - Not Found\r\nThe resource you are looking for has been removed, had its name changed, or is temporarily unavailable.\r\nDetailed Error Information\r\nModule\tIIS Web Core\r\nNotification\tMapRequestHandler\r\nHandler\tStaticFile\r\nError Code\t0x80070002\r\nRequested URL\thttp://localhost:801/en-us/reminder/acer/install\r\nPhysical Path\tF:\\Dev_work\\consumer-web-util\\dist\\en-us\\reminder\\acer\\install\r\n \r\nIIS routes http://localhost:801/en-us/reminder/acer/install   to  dist\\en-us\\reminder\\acer\\install  folder,   \r\n\r\nbut the route rule should be  like below: \r\n\r\n .when('/', {\r\n        templateUrl: 'app/main/main.html',\r\n        controller: 'MainCtrl'\r\n      })\r\n      .when('/:locale/reminder/acer/install',{\r\n        templateUrl: 'app/reminder/reminder.html',\r\n        controller:'ReminderCtrl'\r\n      })\r\n      .otherwise({\r\n        redirectTo: '/'\r\n      });\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/comments/102079719","html_url":"https://github.com/Swiip/generator-gulp-angular/issues/540#issuecomment-102079719","issue_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/540","id":102079719,"user":{"login":"astw","id":4297100,"avatar_url":"https://avatars.githubusercontent.com/u/4297100?v=3","gravatar_id":"","url":"https://api.github.com/users/astw","html_url":"https://github.com/astw","followers_url":"https://api.github.com/users/astw/followers","following_url":"https://api.github.com/users/astw/following{/other_user}","gists_url":"https://api.github.com/users/astw/gists{/gist_id}","starred_url":"https://api.github.com/users/astw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astw/subscriptions","organizations_url":"https://api.github.com/users/astw/orgs","repos_url":"https://api.github.com/users/astw/repos","events_url":"https://api.github.com/users/astw/events{/privacy}","received_events_url":"https://api.github.com/users/astw/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T15:49:21Z","updated_at":"2015-05-14T15:49:21Z","body":"Sorry,  this is URL rewrite issue.  \r\nI will close this one."}}