How to share the site of the Z-BOLG program do 301 REDIRECT Methods

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Hechi SEO today and everyone sincerely share the Z-BOLG program to do the site how 301 redirect really effective way.

Know SEO friends know, in order to focus on the weight of the site, to fat binding in the site space domain name focused on the www.778seo.com or 778seo.com, then you must do the domain name 301 Redirect to the other domain name to focus on the domain name.

There are a lot of ways to redirect 301, site search out and the result is also a mess, what the law has, is not refined to some kind of construction station procedures, so many like me to build a station rookie look dizzy, today Hechi SEO and everyone to share the Z-BOLG program do the website how to do 301 redirect. Because Z-bolg is based on ASP code program, our virtual space services do not support the server Set 301 Redirect, then we can only start from the site code. Too much nonsense, now go to the topic, the specific methods of operation are as follows:

1. Locate the Default.asp file in the root directory of the website, download it to the local DW editor or use FTP to upload the software editing function to open this file to add 301 redirect code. (ps~~ do not use Notepad to edit as much as possible, sometimes because of coding problems.) )

  

The code is as follows:

Dim Thishttpurl

Thishttpurl=request.servervariables ("Http_host")

If Thishttpurl= "778seo.com" Then

Response.status= "Moved Permanently"

Response.AddHeader "Location", "http://www.778seo.com/"

End If

Remember to change domain name to your own domain name OH.

A lot of online is only given a generation, also do not say add to that, let people do not know how to use, Hechi seo this do 301 redirect in Baidu, Google turned 3 days, after countless trials hunt to try out, so we read the article must give a comment, thank you! I also tried to Dedecms 301 Redirect method, test domain name: 0778seo.com if necessary please comment.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.