lucy24 - 10:12 am on Jul 13, 2013 (gmt 0)
What I am now having trouble with is redirecting index.(php|html?) to the directory it is in preserving the parameters if any and excluding one directory. Essentially ensuring short links without the index filename.
The idea behind an index-redirect is primarily to avoid duplicate content. If you want a shorter URL that's a whole nother issue.
Since parameters are preserved untouched unless you specifically say otherwise, they should have no effect on redirects and can simply be ignored.
This causes an infinite loop as it redirects to 'http://blog.example.com/sub_ds/blog/' over and over. Why is it referring to the 'real' location of the file rather than the redirected 'new' location as per the rules above it?
You've got a rewrite in the mix somewhere. Rewrites use "real" paths. That's why it is so important to ensure that nothing gets redirected after it has already been rewritten.
Have you quoted your entire htaccess? That is, not literally the whole thing-- we don't need to see your IP lockouts and similar :)-- but absolutely everything involving rewrites and/or redirects? And there's nothing else in any deeper htaccess?