Home > Backend Development > PHP Tutorial > php网站linux系统,如何禁止浏览.htaccess

php网站linux系统,如何禁止浏览.htaccess

WBOY
Release: 2016-06-13 12:17:12
Original
1016 people have browsed it

php网站linux系统,怎么禁止浏览.htaccess
语言php
开发模式:php+html混编模式,没有使用框架(小网站)

使用了伪静态  .htaccess

发现在ie下可以直接访问xxx.xxx.com/.htaccess
在火狐下可以直接下载此文件

现在怎么做才能不直接就浏览此文件呢?

我百度了一些处理方法
1)
#RewriteRule !.(htaccess)$ index.php   失败
2)

order allow,deny
deny from all
 
失败

请问请该是用什么办法呢?

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template