Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem with a link in a newsletter. The link point to a file (.wav) who is on the server but when I click on it on the newsletter I got an http 400 error, which means the file is missing. But it is on my server.

I've tried to make a redirection to another file (.zip) The redirection doesn't work but I can download the file.

My file is called like that: trak(Extended_Intro+Outro).wav

and the zip is:

My htaccess looks like that:

AddType audio/x-wav .wav
AddType audio /wav .Wav
AddType application/octet-stream .wav

Redirect 301 /newsletter/music/track(Extended_Intro+Outro).wav 


What I am doing wrong?

Thanks for help.


share|improve this question

migrated from Sep 13 '11 at 22:04

This question came from our site for professional and enthusiast programmers.

http 400 is actually "bad request" – Cyclone Sep 13 '11 at 21:53
I think the formatting of your AddType is wrong: remove the excess spacing on the second line. – U4iK_HaZe Sep 13 '11 at 22:27
@U4ik_Haze: yes, that "audio /wav" is wrong. should be "audio/wav". – cas Sep 14 '11 at 9:44

i'm having a hard time trying to figure out what it is you're actually trying to do.

you want to redirect a request for a specific .wav file to a specific .zip file? or the other way around?

in either case, why? they're different types of files, not really interchangable.

As for the htaccess problem, do you have:

  • AccessFileName defined in your apache config?

see: and

  • AllowOverride configured for the directory concerned?

    You need FileInfo allowed for AddType and Redirect to work in a .htaccess file.

    Watch our for "AllowOverride None" in a higher level dir - that disables htaccess settings for the directory and all subdirectories (but will be overridden by more specific AllowOverride rules that are defined for subdirectories)


share|improve this answer
Thanks for reply. I've updated the htaccess without the space but it doesn't anything unfortunately. Regards – user94598 Sep 13 '11 at 22:48
what's a space got to do with anything i wrote? – cas Sep 13 '11 at 23:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.