Jump to content

set Mod_rewrite for php download link


whynot

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/255232-set-mod_rewrite-for-php-download-link/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.