Symfony2 using assetic with Angular HTML5 routes
Try to use FOSJsRoutingBundle. This bundle allows you to expose your routing in your JavaScript code. That means you'll be able to generate URL with given parameters like you can do with the Router component provided in the Symfony2 core. https://github.com/FriendsOfSymfony/FOSJsRoutingBundle
You could use different rewrite rules in your .htaccess. And then gitignore the file. So that on your localhost its always routed through app_dev.php and on prod through app.php.In order to help you dumping the routes, Symfony2 has a command:http://symfony.com/doc/current/cookbook/configuration/apache_router.html