• I’m trying to offer mp3 downloads through the posts in my blog (bringthebeats.com). For some reason – it doesn’t matter what the extension is .mp3, .zip, .exe – the downloads simply redirect to the homepage and the download doesn’t trigger. My web host has no idea what the problem – and neither do I. Can somebody help me out?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter bringthebeats

    (@bringthebeats)

    To update this. If I change the extension to .txt – the file downloads. Can anyone tell me how to have other extensions recognized?

    It sounds like a problem with your host access to the .htaccess file.

    I presume you have a specific directory of files that you offer for downloading?

    You could try adding a line like this to the .htaccess, which will force a download. Although, this should work in your root .htaccess, you may need to create another and put it in the specific download directory.

    <Files *.mp3>
    ForceType application/octet-stream
    Header set Content-Disposition attachment
    </Files>

    or for multiple types you could use filematch:

    <FilesMatch “\.(zip|exe|mp3|rar)$”>
    ForceType application/octet-stream
    Header set Content-Disposition attachment
    </FilesMatch>

    Thread Starter bringthebeats

    (@bringthebeats)

    Thanks for the speedy reply, but I might need a little more instruction. I don’t see a .htaccess file in any of my directories and when I create one with the above text – things kind of go haywire. Is there any additional text I should be including in the file? I apologize for being spoon fed by I’m really not that programming savy. I really apprecitate the help.

    >>things kind of go haywire
    What happens? The lights go out? The doors start shaking?

    Firstly, check with your host that you can actually use .htaccess or if they need to enable it on the server before you can use the file.

    Thread Starter bringthebeats

    (@bringthebeats)

    I lose all my graphics, everything goes text based and loads are extremely long. Call them now. BRB. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘downloads on my blog’ is closed to new replies.