Options +FollowSymlinks RewriteEngine On # Uncomment the bollow lines if your server does not redirect # to directories with a trailing slash in the url. For # example, if "http://domain.com/dir" is not redirected to # "http://domain.com/dir/" correctly. Then dList can handle # it correctly instead of your server. #RewriteCond %{REQUEST_FILENAME} -d #RewriteCond %{REQUEST_URI} !/$ #RewriteCond %{REQUEST_URI} ^(.+)$ [OR] #RewriteRule !^(.*)/$ /dlist/ [L] # rewrite to dList if no index files found RewriteCond %{REQUEST_FILENAME}/index.html !-f [NC] RewriteCond %{REQUEST_FILENAME}/index.php !-f [NC] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.*)$ /dlist/