1 Replies - 429 Views - Last Post: 18 January 2012 - 07:32 AM Rate Topic: -----

#1 OpenBSD  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 58
  • Joined: 15-August 10

set Mod_rewrite for php download link

Posted 17 January 2012 - 03:13 PM

Hi,
I have This Url After Click download Link For Access and download file .
index.php?module=Files&action=show&id=default&download=yes&id=$_REQUEST[id]


After refresh this url generate and worked:
domain.com/files/test.jpg


NOW when 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 after click refresh meta page and generate url (domain.com/files/test.jpg) but not show file for download .Actually this url is my file But I dont see this. I think the problem is mod_rewrite setting!

How To Fix This Problems ! NOTE : without send header .

This post has been edited by OpenBSD: 17 January 2012 - 03:17 PM


Is This A Good Question/Topic? 0
  • +

Replies To: set Mod_rewrite for php download link

#2 OpenBSD  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 58
  • Joined: 15-August 10

Re: set Mod_rewrite for php download link

Posted 18 January 2012 - 07:32 AM

Any Help Or Idea :(
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1