yup, Yet Another Message About. arg.
ok, so i'm frustrated with the lack of carefully worded and complete docs on rewriting & redirection in apache .htaccess. (man, if anything will be the downfall of open source it will be the lack of documentation skills of software engineers and their (our) usual inability to use English in a way that is both semantically precise and technically accurate as it applies to the topic being documented). . I believe that the problems i'm having are due to my misunderstanding the .htaccess run-time context and what the path i will be handling during a Redirect or a RewriteRule actually looks like in every case.
I wish to have an .htaccess in the root (only, where possible) of each domain or subdomain. further, i wish for every one of these .htaccess files to be identical for ease of maintenance. for externally-imposed reasons, the web document index cannot be index.html - but an index.html file will be present in some directories. Here's what i've done:
1) ix.html is the actual document index file, so I have specified:
2) i need to prevent access to index.html in the case that someone has an old bookmark, or assumes index.html and types it explicitly, so i have tried 900 different things, including various Redirect-s and RewriteRule-s and none of them work in every possible case. Currently, I am down to no RewriteRules and only this redirect:
RedirectMatch (.*)index.html$ $1
This seems to work on all my DH domains. BUT it does NOT work on any subdomain. the docroot of the subdomain is physically inside the directory of the parent domain, altho i don't see that this could have any bearing on the error.
so what's wrong with that redirect, and why does it work if one types, for example, [www.]tmike.com/index.html, but not if one types dp.tmike.com/index.html?
tmike at your dot pants com
(to reply by email, drop your pants)