I need all files in the above subsubdirectories to parse through the PHP file located inside "dir" (this includes directories with or without trailing slashes, where the PHP script will choose to spit out a file called index.html). All .htaccess code needs to be placed inside "dir".
Here is some code I have:
RewriteCond $1 !\.php
RewriteRule ^(.*) file.php?file=$1