Fix Temporary 404 Errors from Microsoft Safe Links in Outlook
Question details
Users encounter a temporary 404 error on the first click of an email link protected by Microsoft Safe Links, which resolves after refreshing the page.

- Product
- Microsoft Outlook / Microsoft 365
- Device & OS
- not provided
- Scenario
- Clicking an external URL in an email that is being routed through Microsoft Safe Links for security scanning.
- Observed behavior
- The initial request returns a temporary 404 Not Found error during the redirect process. Manually refreshing the browser then loads the destination normally.
Confirm whether this issue happens with all links in your Outlook emails or only specific target URLs, as this helps isolate whether the problem is global to the Microsoft 365 tenant or isolated to one web application.
Investigate Target Application Redirect Handling
Verify how the destination web application processes redirected URLs from Microsoft Safe Links to resolve the initial timeout or missing route.
When Safe Links redirects a URL, it alters the request path and timing. If the target web application does not properly validate or route the redirected HTTP request, it may drop it or return a 404 error before the scan completes.
Access your target application's server logs (e.g., IIS, Apache, or Nginx). Look for the initial HTTP GET requests coming from Microsoft's Safe Links IP addresses to see why they result in a 404 response.
Review your application's routing and security rules. Ensure it allows the appended query strings and redirect parameters that Microsoft Safe Links automatically attaches to the original URL.
Try loading the exact encoded URL string generated by Safe Links in an incognito window to see if the application handles the complex URL structure natively without throwing a 404.

Review Safe Links Policies via Microsoft 365 Admin Center
Engage the organization's Microsoft 365 administrator to adjust Safe Links policies or submit a formal support ticket to Microsoft.
Switch to WPS Office for a Streamlined Workflow
If complex enterprise policies and external link scanning in Microsoft 365 are causing workflow interruptions, consider using WPS Office for your document tasks. It provides a lightweight, highly compatible, and free alternative to Microsoft Office, ensuring seamless productivity without heavy administrative overhead.
- 1. Download the installer: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install the software: Run the setup file and follow the quick on-screen instructions to complete the installation.
- 3. Open your existing documents: Launch WPS Office and directly open any of your existing Microsoft Office files to continue working seamlessly.

Frequently Asked Questions
Why does refreshing the page resolve the Microsoft Safe Links 404 error?
When you click a Safe Link, Microsoft redirects the URL through its servers to scan it for malicious content. If this initial scan times out or causes a routing hiccup on the target server, it throws a 404 error. By the time you refresh the page, the scan has completed in the background, allowing the destination to load successfully.
Can I disable Microsoft Safe Links for specific URLs?
Yes, but this action must be performed by a Microsoft 365 administrator. They can access the Microsoft 365 Defender portal and add trusted domains to the 'Do not rewrite the following URLs' list within the Safe Links policy settings.
Does a temporary 404 error mean the link is malicious?
No. A 404 error simply means the requested page could not be found during the initial routing process. If the link were deemed malicious by Microsoft Safe Links, you would instead see a prominent red warning page blocking access to the site.
Can end-users fix the Safe Links temporary 404 error themselves?
Generally, no. Because Safe Links is enforced at the organizational level by Microsoft 365 policies, end-users cannot bypass or alter the redirect behavior. You must contact your IT department or the administrator of the destination website to resolve the underlying routing issue.




