Answer the question
In order to leave comments, you need to log in
What to write in .htaccess so that all files, including index.html, are downloaded and not opened?
Neither helps:
ForceType None
ForceType application/octet-stream
Answer the question
In order to leave comments, you need to log in
<Directory /var/www/bitrix-test.klondike-server.ru/web/upload>
AllowOverride none
<IfModule mod_mime.c>
<Files ~ \.(php|php3|php4|php5|php6|phtml|pl|asp|aspx|cgi|dll|exe|shtm|shtml|fcg|fcgi|fpl|asmx|pht|py|psp|rb|var)>
SetHandler text/plain
ForceType text/plain
</Files>
</IfModule>
<IfModule mod_php5.c>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question