你写的对吗?
<Files ~ "\.htaccess$">
   Order allow,deny
   Deny from all
</Files>

解决方案 »

  1.   

    <Files ~ "\.htaccess$">
       Order allow,deny
       Deny from all
    </Files>
    <ifmodule mod_headers.c>
    # css, js, swf濬腔恅璃遣湔珨跺陎
    <filesmatch "/.(css|js|swf)$">
    header set cache-control "max-age=604800"
    </filesmatch>
    # jpg,gif,jpeg,png,ico,flv,pdf脹恅璃遣湔珨爛
    <filesmatch "/.(ico|gif|jpg|jpeg|png|flv|pdf)$">
    header set cache-control "max-age=29030400"
    </filesmatch>
    </ifmodule>这么写后仍然还是可以直接在ie上访问浏览
      

  2.   

    httpd.conf 中不是有这样一节吗,你把它删掉了?#
    # The following lines prevent .htaccess and .htpasswd files from being 
    # viewed by Web clients. 
    #
    <FilesMatch "^\.ht">
        Order allow,deny
        Deny from all
    </FilesMatch>
      

  3.   

    #
    # The following lines prevent .htaccess and .htpasswd files from being 
    # viewed by Web clients. 
    #
    <FilesMatch "^\.ht">
        Order allow,deny
        Deny from all
        Satisfy All
    </FilesMatch>
    是这样的,有这句
      

  4.   

    The following lines prevent .htaccess and .htpasswd files from being viewed by Web clients. 
    不就是 防止. htaccess和 .htpasswd文件被Web客户端查看 的意思吗?
      

  5.   

    恩,但是现在还是能被看到了的那会出现这样的原因,是和我本身的.htaccess的写法有关系吗?
    RewriteRule ^our/info-([0-9]+).html$ info.php?idp=$1 [L]RewriteRule ^changzhao.html$ changzhao.php [L]
    RewriteRule ^changzhao-([0-9]+).html$ changzhao.php?cid=$1 [L]
    RewriteRule ^changzhao-([0-9]+)-([0-9]+).html$ changzhao.php?cid=$1&is=$2 [L]
    RewriteRule ^changzhao-nr-([0-9]+).html$ changzhao_nr.php?id=$1 [L]RewriteRule ^(.*)quanzhong-([a-z]+).html$ quanzhong.php?zm=$2 [L]
    RewriteRule ^(.*)htaccess index.php [L]RewriteRule ^/product.html$ / [L]
    #RewriteRule ^/product.php?code=0000100012$ http://www.cosplayla.com/product/ [L,R=301]
    #RewriteRule ^product.php?code=0000100012$ /product/$1 [R=301,L]
    #Redirect 301 /product.php?code=0000100012 http://www.cosplayla.com/product/ErrorDocument 404 /404.html
      

  6.   

    RewriteRule ^(.*)htaccess index.php [L]
    是什么意思?