This is taken from the answer to another question, so upvote that one:
App.Router.map(function() {
this.route('catchAll', { path: '*:' });
});
App.CatchAllRoute = Ember.Route.extend({
redirect: function() {
this.transitionTo('index');
}
});