How is it possible to automically redirect thankyou.php page to download ".DAT" file which is available at different directory.
File Dir = http://domain.com/storage/file.dat While thankyou.php is available at root http://domain.com/thankyou.php
Thanks for everyone answering my question.
Following @bruno-fidelis which I thank alot I'm getting the below error message for the file downloaded. I mean when the file is downloaded and open it I get this error message
<html>
<head>
<title>Thank You</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
<body>
<br />
<b>Warning</b>: readfile(http://domain.com/path/to/file/filename.dat): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in <b>/home/user/public_html/dir/success.php</b> on line <b>159</b><br />
Warning: filesize(): stat failed for http://domain.com/path/to/file/filename.dat in /home/user/public_html/dir/success.php on line 160