am trying to have mod_rewrite redirect to a index.htm cache file if it exists. the url is something like http://mysite.com/section/category/ if the cache file: http://mysite.com/section/category/index.htm exists then it should go to that. otherwise proceed with other rewrite rules have spent hours trying to do this and am thoroughly brainfried. any ideas? have tried the below: RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{REQUEST_FILENAME}index\.htm -f RewriteRule . - [L] the first line works but and it detects as a dir but second line doesnot do the redirect even though the file exists.