Red
Новичок
.htaccess, <Files "\.(gif|jpe?g|png|doc)$"> не видит файлы
используется mod_rewrite
это в .htaccess
дана дирректория downloads из которой нужно разрешить скачивание файлов.
в директории downloads другой .htaccess в котором
html, jpg сервер видит, а при обращении к *.doc "заворачивает" на all.php.
как сделать чтобы файл *.doc можно было скачать.
используется mod_rewrite
это в .htaccess
PHP:
Options Includes +ExecCGI
AddType text/x-server-parsed-html .html
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^.htaccess$ - [F]
RewriteRule ^info/$ index2.php?info
DirectoryIndex index.php index.htm
errordocument 404 /all.php
errordocument 403 /all.php
errordocument 401 /all.php
в директории downloads другой .htaccess в котором
PHP:
Options +Indexes
DirectoryIndex index.html
<Files "\.(gif|jpe?g|png|doc)$">
ForceType text/plain
</Files>
как сделать чтобы файл *.doc можно было скачать.