Home >Backend Development >PHP Tutorial >.htaccess有关问题

.htaccess有关问题

WBOY
WBOYOriginal
2016-06-13 10:10:27799browse

.htaccess问题

  Order allow,deny
  Deny from all


这个是可以禁止php等文件执行

如何把它改成只能执行jpg,gif,png呢?


如何设置只能访问某个目录的文件?

------解决方案--------------------

Order allow,deny
Deny from all


只能访问某个目录的文件 是什么意思?

apache 只能打开某个目录?
------解决方案--------------------
楼上正解
------解决方案--------------------

Order allow,deny
Deny from all


Order allow,deny
allow from all

这样写两个就可以了。
如果解决了,帮忙点一下这个网站的广告:http://blog.72-web.com
谢谢
------解决方案--------------------

PHP code
<filesmatch> Header set Cache-Control “max-age=2592000″ </filesmatch><br><font color="#e78608">------解决方案--------------------</font><br>去掉"^"<div class="clear">
                 
              
              
        
            </div>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn