Q:

Angularjs ui.router 404 not found page

my Angular Code for stateProvider
 .state('profile',{
    url: '/profile',
    templateUrl: 'Templates/profile.html',
    controller: 'profileCtrl'
})

 .state('profile.details',{
        url: '/:id',
        templateUrl: 'Templates/profile.details.html',
        controller: 'profileCtrl'
    })

when i write this in chrome bar
http://localhost/site/profile/1
Apache Response is
The requested URL /site/profile.html/1 was not found on this server.
but if i click on ui-sref link it's open well 

A:

Because you're using client side routing, it is responsability of whatever server side technology you're using (Node.js, Rails, Django, ASP.NET...) to have a * (catch all) route that would accept everything and just render the same thing (your HTML with the bundle.js) and let the client to decide what to render.

