whynot Posted January 17, 2012 Share Posted January 17, 2012 Hi, I have This Url After Click Link For Access and download file . index.php?module=Files&action=show&id=default&download=yes&id=$_REQUEST[id] I set my mod_rewrite to : RewriteRule ^files/(.*)/?$ index.php?module=Files&action=show&id=default&download=yes&id=$1 in download page i have this for accept & download file : if ($_REQUEST[download] == 'yes') { //check and create MYSQL Result echo " <meta http-equiv=\"refresh\" content=\"0; url=$cms[url]\">"; // $cms[url] = test.jpg } Now generate url (domain.com/files/test.jpg) but not refresh and not show file for download ( new Page)! what's problem ! thaks for any help Quote Link to comment https://forums.phpfreaks.com/topic/255232-set-mod_rewrite-for-php-download-link/ Share on other sites More sharing options...
whynot Posted January 17, 2012 Author Share Posted January 17, 2012 Any Help Quote Link to comment https://forums.phpfreaks.com/topic/255232-set-mod_rewrite-for-php-download-link/#findComment-1308647 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.