# This block expands a dir url to include index.jsp if it exists RewriteCond %{REQUEST_URI} /$ RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI}index.jsp -f RewriteRule ^(.*?)([\?;].*)?$ $1index.jsp$2