This article will show you how to have Apache handle the 404 request instead so WordPress isn’t queried.
The default behavior for a Microsoft Outlook autodiscover request is to first query a domain’s web server for an autodiscover configuration file. This can result in unintended side affects such as accidental blocks by WordPress security plugins after too many 404 requests.


  1. Login to Plesk
  2. Open the Plesk File Manager:
    how to stop microsoft autodiscover 404s via .htaccess
  3. Open your .htaccess file:
    how to stop microsoft autodiscover 404s via .htaccess
  4. Add the below code to the top of the file:
    RewriteCond %{REQUEST_URI} /autodiscover/autodiscover.xml [NC]
    RewriteRule ^ - [L,R=404]

Requests to /autodiscover/autodiscover.xml will now be handled by Apache instead of WordPress.

If you need any assistance please reach out to our friendly support team.

Was this article helpful?

Related Articles