A última regra não tem condições, por isso é usada sempre.
RewriteRule ^.*$ autodiscover.php [NC,L]
The
RewriteConddirective defines a rule condition. One or moreRewriteCondcan precede aRewriteRuledirective. The following rule is then only used if both the current state of the URI matches its pattern, and if these conditions are met.
Portanto, todas as suas condições estão relacionadas à regra anterior:
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
Além disso:
-
Você só precisa de
RewriteEngine Onuma vez. -
Options- Autodiscoverteria um erro de sintaxe SE havia tal recurso de servidor.