发现网络
会员专区 支付方式 帮助中心 代理加盟 控制面板
首 页 域名注册 品牌空间 双线空间 品牌邮箱 服务器 网站制作 代理专区
  用户名 密码 验证码:
 
帮助主题
联系我们
本站通知
行业新闻
价格总览
付款帐号
如何加盟代理
域名相关问题
主机相关问题
邮局相关问题
VPS与服务器租用问题  
 
VPS怎么通过伪静态组件设置301?

1、首先需要为服务器配置好伪静态(Windows:ISAPI_Rewrite,Linux:mod_rewrite)

2、上传伪静态规则到站点根目录下就可以了。

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: ^domain\.com$
RewriteRule (.*) http\://www\.domain\.com$1 [RP,I]

.htaccess

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

 

首 页  |  价格总览  |  代理加盟  |  咨询反馈  |  工作机会  |  关于我们  |  联系我们  |  备案查询  |  防伪查询  |  推广效果
 电话:0510-66031330 400-0487-114 传真:0510-66031331 咨询信箱:mail@2http.cn 咨询OICQ:469386826 545877789
版权所有:第二网络(http://www.2http.cn) ©2008-2015 All Rights Reserved.
地址:中国.无锡 邮编:214001   苏ICP备12002408号-1