Blogger Information
Blog 5
fans 0
comment 0
visits 6335
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
虚拟主机网站301重定向如何设置
博客趣
Original
1210 people have browsed it

  Linux系统主机:新建文本文档,然后后缀名改为.htaccess,打开后添加以下代码进去保存,保存后用FTP软件上传到网站的根目录即可。

  Options +FollowSymlinks All -Indexes

  RewriteEngine on

  RewriteBase /

  RewriteCond %{http_host} ^bokequ.com [NC]

  RewriteRule ^(.*)$ http://www.bokequ.com/$1 [L,R=301]

  windows系统主机:新建文本文档,然后改名httpd.ini,打开后添加以下代码进去保存,保存后用FTP软件上传到你网站的根目录即可!

  RewriteCond Host: ^bokequ.com$

  RewriteRule (.*) http://www.bokequ.com$1 [R,I]

  网站运营中301重定向检测:首先在浏览器网址中输入不带www的域名,看是否能跳转到带www的域名;如能跳转,检测http返回码是否正确,站长工具—HTTP状态查询

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post