Good when the user enters some file with .txt
in the url of the site I have to send it to an authentication file called download.php
Example, if user type www.meusite.com.br/documento.txt
I have to redirect it to the download.php
file.
I'm trying to do this:
RewriteRule ^(.+)\.txt$ Download.php
But rather than redirect it is opening the txt file in the browser normally.
Does anyone know how to do this?