.htaccess防盗链 22 6月 2016 by: 琥珀主机 in: Apache,LinuxTags: .htaccess, Apache如果是cPanel虚拟主机,防盗连的方法不外乎就是到cPanel后台进行设定。如果你是其他类型的空间后台或者是 […] Read More »
.htaccess保护目录与文件 22 6月 2016 by: 琥珀主机 in: Apache,LinuxTags: .htaccess, Apache一般来说很多虚拟主机预设是没有开启保护网站主机目录下的文件,其实很危险的,假若你的目录下忘记放置index文件 […] Read More »
.htaccess设置自定义出错页面 22 6月 2016 by: 琥珀主机 in: Apache,LinuxTags: .htaccess, Apache404错误可以这么写 ErrorDocument code error.php 如果是404错误,跳到文件er […] Read More »
.htaccess应该放在哪里? 22 6月 2016 by: 琥珀主机 in: ApacheTags: .htaccess, Apache根据 Apache 官方的介绍,.htaccess 文件属于分布式配置文件,可以放置在网站 www 根目录的所 […] Read More »
Apache2.2 .htaccess根据IP地址限制访问 22 6月 2016 by: 琥珀主机 in: Apache,LinuxTags: .htaccess, Apache屏蔽IP地址 屏蔽IP地址有时是非常必要的,比如对于一个外贸公司网站,来自国内的访问是不会带来任何经济效益的, […] Read More »
Apache 创建.htaccess文件 22 6月 2016 by: 琥珀主机 in: Apache,LinuxTags: .htaccess, Apache, Linux在linux下创建.htaccess文件非常简单,直接新建一个文件并重命名为.htaccess即可。 下面我来 […] Read More »
Apache .htaccess更改目录下的默认主页 22 6月 2016 by: 琥珀主机 in: Apache,LinuxTags: .htaccess, Apachehtaccess中的DirectoryIndex 可以配置网站目录的默认主页,例如有的服务器默认index.h […] Read More »
301/302/307跳转 22 6月 2016 by: 琥珀主机 in: Apache,LinuxTags: .htaccess, Apache.htaccess现在被广泛应用的原因应该是它的跳转功能。自从网站优化出现后,为了保证页面的流量和排名,网站改 […] Read More »
Apache 禁止浏览.htaccess文件 22 6月 2016 by: 琥珀主机 in: Apache,LinuxTags: .htaccess, Apache相信现在你已经学会很多.htaccess的配置方法了,可是你要知道,很多黑客会攻击和利用.htaccess做网 […] Read More »
Apache .htaccess禁止以目录形式显示 22 6月 2016 by: 琥珀主机 in: Apache,LinuxTags: .htaccess, Apache禁止网站的任何文件夹以目录显示,可以有效防止用户看到文件夹下的其他内容,例如我们把网站的图片都放在images […] Read More »