1

How I can create .htaccess file, When I wanna disable all files except images.
My code.

order deny,allow
deny from all
4

2 回答 2

8

Tx you, My final code

order allow,deny
<Files ~ "\.(jpg|jpeg|png|gif|pdf|txt|bmp)$">
   allow from all
</Files>
于 2013-03-31T14:48:01.043 回答
7

You can check it here.

For example you can use the following:

<Files ~ "\.(jpg|jpeg|png|gif)$">
   order deny,allow
   allow from all
</Files>
于 2013-03-30T11:15:50.807 回答