cancel
Showing results for 
Search instead for 
Did you mean: 

Redirect a particular file?

N/A

Redirect a particular file?

Hi there,

I am still a novice at this. I have an MP3 on my site that is downloaded many times per month, recently causing that dreaded 'you have exceeded your bandwidth allowance' abuse email...

The trouble is, as far as I know these people don't exist!

There is no sign from my web counter that this many downloads happen, nor from my own PHP code that notifies me of every download.

If these people really DO exist they must be accessing the file's URL directly.

Is there a way to redirect a particular filename, say

http://www.edwardsmale.force9.co.uk/Rhapsody/Rhapsody.mp3

to my new host, at

http://www.edwardsmale.co.uk/Rhapsody/Rhapsody.mp3?

I have tried Telnetting into my webspace, which I couldn't do (didn't know the hostname), and also doing the 'ln' command via my FTP client, but couldn't get it to work :-(

Thanks for your help.

Ed
3 REPLIES
N/A

Redirect a particular file?

I am not sure how to do it in php, but in asp you can do a response.redirect to carry out that function.
N/A

Redirect a particular file?

My problem is that they are not accessing it via my PHP pages - they are accessing the MP3's URL directly somehow.

Is there a file-based way of doing this?
N/A

Redirect a particular file?

Take a look at the .htaccess Tutorial, in particular the section on Redirects.