F
F
Fyodor2014-10-25 08:31:07
PHP
Fyodor, 2014-10-25 08:31:07

Why might AddType not work in htaccess?

They took hosting on Nic.ru and on files like mp3 mp4 and other similar ones - when you open a direct link to a file, it does not offer to download it, and the browser tries to play the file directly in the browser.
in one folder there are png logos that you also need to offer to download, so I added there (not yet the old hosting)
AddType application/octet-stream .png
- it worked on the old one, on the new one (nic.ru) no
I tried it like this
RemoveHandler .png
AddType application/octet-stream .png
has no effect either.
forcing AddType for Mp3 mp4 also has no effect.
until technical support can not get through, maybe someone will tell you what could be the matter?
Of course, I have an answer - the hosting settings are the same and the AddType directive is Disabled, but maybe I'm wrong.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dykky, 2014-10-26
@dykky

For example, in the Apache config (httpd.conf) for this directory, there is no permission to change this parameter in AllowOverride .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question