I am trying to implement clean urls with an variable at the top level (without having a controller action in the URL)
ex. instead of http://domain.com/cont_action/MyVar having just http://domain.com/MyVar.
The route below works, but it triggers before everything else. How can I specify my custom route to be the last one that is being checked (lowest priority even after the SiteTree)?
--- Name: approutes After: - 'framework/routes#rootroutes' - 'framework/routes#coreroutes' - 'framework/routes#modelascontrollerroutes' --- Director: rules: '$MyVar': 'AppController'