您的当前位置:首页 --> Windows教程 --> Win httpd.ini 301、防盗链和绑定根目录设置
Windows教程   Win httpd.ini 301、防盗链和绑定根目录设置
浏览次数:5006 关键词 ( )
查看使用该CPU的产品 查看CPU天梯
CPU型号:Win httpd.ini 301、防盗链和绑定根目录设置
主频:Ghz
睿频:Ghz
核心数:个
不支持超核心
制作工艺:
插槽类型:
功耗:0W
L3缓存:0MB
支持最大内存: GB
 
CPU详细参数

在网上有很多人用全能空间,基本上服务商提供支持伪静态是 httpd.ini 格式的,今天我整理下httpd.ini格式的小小用处吧!

当然,你也可以【直接复制】下面的代码另存为 httpd.ini 伪静态文件上传至空间根目录即可:

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

#防盗链设置
RewriteCond Host: (.+)
RewriteCond Referer: (?!http://(?:weidao\.net|(.*)\.weidao\.net|baidu\.com|(.*)\.baidu\.com|discuz\.net|(.*)\.discuz\.net|google\.com|(.*).\google.com)).*
RewriteRule .*\.(?:jpg|jpeg|gif|png|bmp|rar|zip|exe) /img/jinzhifanyue.jpg [I,O,N]

#让指定域名访问指定根目录
RewriteCond Host: bbs\.weidao\.net
RewriteRule ^(.*)$ /bbs/$1 [I]

#网站301重定向
RewriteCond Host: ^www2\.weidao\.net$
RewriteRule (.*) http://www.weidao.net$1 [I,R]

#cPanel 开启Gzip
output_buffering = Off
output_handler =
zlib.output_compression = On

下一个产品 安装SQL Server出现在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke
上一个产品 在Windows中批量绑定同网段IP地址

拥有超过10年的业务管理经验。我们是IDC服务和解决方案方面的专家

有任何疑问请不要犹豫,立即点击联系我们