add support for DirectoryIndex using RewriteRule

improve with slash redirect