angular / angular-seed

Seed project for angular apps.
http://angularjs.org/
MIT License
13.04k stars 6.95k forks source link

Any view shows index page #411

Closed devthedeveloper closed 7 years ago

devthedeveloper commented 7 years ago

When I hit directly http://localhost:8000/view1 it goes to http://localhost:8000/view1/ and shows the index page like this

image

its same with any route.

gkalpak commented 7 years ago

This is expected. Since by default the app is in hashbang mode, the URL for view1 would be http://localhost:8000/#!/view1. If you want to use HTML5 mode (where yu can get cleaner URLs) you need a server that can be configured to rewrite appropriate URLs to index.html.

For more info, take a look here.