lucy24 - 9:06 pm on Oct 24, 2012 (gmt 0)
#1 When you say
do you mean your domain (example.com) or do you mean a subdirectory? A RewriteRule only sees the path: the part after http://www.example.com and before the query, if any. In htaccess, leave off the leading slash in the pattern. Include it in the target when you are rewriting alone. (Your Redirect target is correctly formed, so don't change it.)
#2 a rule that explicitly says
will only pick up requests that either asked for this form in the first place (baaad!) or that have already been rewritten by mod_dir. This normally executes after mod_rewrite, but in htaccess you can't make assumptions so rules should allow for both forms:
RewriteRule ^directory(/(index\.cfm)?)?$ et cetera.
The double-nested ? elements are to avoid a double redirect if you get a request missing the final directory slash. Remember to escape all literal periods in the pattern. Sometimes it doesn't make much difference; sometimes it's crucial.
Are you really making 325+ separate rules, or is that just your example?