How to redirect a download file URL to another download file URL

Status
Not open for further replies.

roots

New Member
Messages
23
Reaction score
0
Points
0

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Can't you just change the file name?
 

Synkc

Active Member
Messages
1,765
Reaction score
0
Points
36
You could use mod_rewrite to cause the location "http://abc.exofire.net/downloads/abc.exe" to be constructed from a php file (abc.php); which would allow you to redirect to your "http://abc.exofire.net/downloads/pqr.exe" file via the use of the header(location:'dfsf') function.
 
Last edited:

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Also for the .htaccess, you can do this.

Make a .htaccess inside your 'downloads' folder, and enter the following into it.

Code:
RewriteEngine on
RewriteRule abc.exe$ /downloads/pqr.exe

Should be as simple as that.
 
Status
Not open for further replies.
Top