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:
ix.html is the actual document index file, so I have specified:
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.
tmike at your dot pants com
(to reply by email, drop your pants)