There is a problem with that Microsoft "thing" (i have no idea what it is and what it does), i found this very helpfully posting:
http://jgoldhammer.github.io/alfresco-m ... discovery/Maybe your redirect still does not work for some reason, you should also test "Microsoft Office Existence Discovery" etc. , i cannot test it here, i dont have your environment. Its on you to find out, why the OPTIONS Header still reaches the server. Or (what i would do) simply check only for "Microsoft Office" in the User Agent TAG. This covers all cases:
- Code: Select all
RewriteCond "%{HTTP_USER_AGENT}" "Microsoft Office"
P.S.: I just got another idea - the Rewrite actually works! The problem is, you cannot redirect with Code 403, because then Apache tries to execute the HTTP Request and deliver the ErrorDocument 403 (instead of the requested document). But as the OPTIONS Header is invalid from the Microsoft Office thing, this results in an Error 500. You actually should redirect with Code 501 as given in the Link above.