Hi all, I ended up using Oliver's suggestion of the urlrewritefilter, which I configured to redirect from the root path (i.e. /^/$/) to /index.html. Note that this requires the Servicemix bundle version of the org.tuckey.urlrewritefilter as the standard JAR doesn't included OSGi metadata.
I did also see the configuration for default extensions in the Resource Resolver Servlet (servletresolver.defaultExtensions), however it doesn't seem to do what it says (unless I am misunderstanding the description). This is set to html by default. Many thanks for the suggestions. regards, ben On Thu, Jun 23, 2016 at 2:42 AM, Oliver Lietz <apa...@oliverlietz.de> wrote: > On Wednesday 22 June 2016 14:15:42 Bertrand Delacretaz wrote: > > Hi, > > > > On Wed, Jun 22, 2016 at 12:39 AM, Ben Fortuna <benfort...@gmail.com> > wrote: > > > ...Should this be handled in sling or is it common practice to use > another > > > mechanism to redirect / to /index.html? ... > > > > I suspect people often use front-end rewriters like mod_rewrite to add > > extensions to URLs which have none. > > Apache Sling URL Rewriter: > https://github.com/apache/sling/tree/trunk/contrib/extensions/urlrewriter > > Regards, > O. > > > Having a configurable default extension in Sling might be interesting, > > but we'd probably need to limit it to specific paths, or make that > > just an extension point. > > > > -Bertrand > >