For my site let's say I have a file in a folder called 'download'
so the direct link for the file would be www.testing.com/download/file.exe
I want to throw an authorization token with it like so, .../download/file.exe?auth=asdffg122**, with the auth token being a hash from time and expiry. So far I have written in a .htaccess file :
RewriteEngine on
RewriteRule \(.*)$.(exe)$ check.php?file=$1?auth=$2 [QSA]
I want to pass the name of the file to variable $1, and the auth token to the $2 variable. Is there a way to do this?