How to jump 301 website? Describes how to set the jump settings

Source: Internet
Author: User
Tags .url aliyun discuz domain domain name home page hosting how to

Intermediary trading http://www.aliyun.com/zixun/aggregation/6858.html"> SEO diagnostic Taobao customer hosting technology hall

The day before I moved because of their own site, so we talked about 404 pages and discuz to replace the domain name tutorial!

So today talk to you about website 301 jump set detailed method!

As we all know, when the site for the domain name, the old domain name in order to avoid the loss of weight, it is necessary to set the site to jump to a new domain name 301, then, how to jump the site?

Here are two ways to jump 301:

1. When a.com jumps to b.com opens a.com/1.html also jumps to b.com

2. When a.com jumps to b.com opens a.com/1.html to jump to b.com/1.html

So, the above method can better let the weight pass it?

This is definitely the second one, because the second one will minimize the loss of weight, but will not focus on the home page all the time, while the user search experience is good, for example, your old website ranking others search A word to find your website link is a.com/1.html, but opened it and jump to the home page b.com then you think he will be leisurely in your website to continue to search that word, or turn off your site Into other sites?

From the above that, the second method, not only in the transmission of weight and user experience better than the first one! Then Huang Kun to talk about how to set 301 jump?

Here are two methods provided by Huang Kun:

One .IIS setting method

Open the properties of the IIS Web site to find the home directory to select redirect to url, and select the resource's permanent redirect and enter the correct url above

At the same time in the redirect URL with $ S $ Q characters

As shown:

Two: .htaccess set 301 jump

Just type in the .htaccess file

RewriteCond% {HTTP_HOST} ^ jmdrkj.cn

RewriteRule ^ (. *) $ Http://www.jmdrkj.cn $ 1 [R = permanent, L]

The above code on it

As shown:

Some 301 often encountered problems:

1. Why do I set this up, the website jump 301 jump to the static page, obviously my site has done a pseudo-static?

Huang Kun: The reason for this solution is to put the code to jump to 301 pseudo-static rules above! To see the specific figure above!

My site wants to make a few domain 301 redirect to the new station, how to do?

Huang Kun: RewriteCond% {HTTP_HOST} ^ 76o.com

RewriteRule ^ (. *) $ Http: //www.76o.com$1 [R = permanent, L]

RewriteCond% {HTTP_HOST} ^ doubiwang.com

RewriteRule ^ (. *) $ Http: //www.76o.com$1 [R = permanent, L]

This order in turn increase on the line, I can see the specific figure set above!

Huang Kun recommend using. Htaccess set 301 method! Specific use to see everyone's situation!

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.