I need you to not show the actual physical address on a link to download a file on my site.
The file link I want it to look like this: [UrlSite] / downloads / filename.extension
And I'm trying to use the following code in my web.config:
<rule name="Downloads Redirecionar">
<match ignoreCase="true" url="^downloads/([a-zA-Z0-9_-]+).([a-zA-Z0-9_-]+)$" />
<action type="Rewrite" url="/public/arquivosDownload/{R:1}.{R:2}" appendQueryString="false" />
</rule>
But it is not working. As if he did not use the rule. When I click to open in a new tab the link to download it opens the page:
without redirecting to:
What am I doing wrong that is not working?