I'm writing a Backbone.js application that makes use of the HTML5 history API. I would like users to be able to create URLs of the form:
domain.com/any domain.com/random domain.com/paththattheuserlikes
and have all these URLs routed to my
index.html page, where the Backbone router will take the path and process the request appropriately.
My question is this: how can I set up Apache to route all requests to that domain to
index.html, while keeping the path in place so that the Backbone router will handle the request correctly?
I know how to do a simple Apache redirect, but I'm worried that will remove the path.