The solution was to go in the SSL/TLS settings on that domain on Cloudflare, and switch the encryption mode from Flexible (the default) to Full.
Devamı →Static redirect kodumuz;
Devamı →<location path="pdf/sugarcocktailbarmenu.pdf">
<system.webServer>
<httpRedirect enabled="true" destination="https://menu.sugarcoctailbar.com" httpResponseStatus="Permanent" />
</system.webServer>
</location>
C#,MVC,MSSQL,Windows Forms