lucy24 - 9:01 pm on Mar 29, 2013 (gmt 0)
Before anything else: Dump ALL the "IfModule..." envelopes. Not their content, just the envelopes themselves. Those are boilerplate that comes with mass distributions. You are now on an individual server that either has or does not have the required modules.
Once you've dumped the envelopes you will have a clearer idea of what your overall structure is.
Besides, nesting "If" statements makes me nervous. The more complicated you get, the more room there is for unintended consequences. (See unrelated thread elsewhere about surprising discoveries involving the humble FilesMatch.)