Forward: Practice Site Setup 301 Permanent redirect

Source: Internet
Author: User

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

I think webmaster friends are familiar with the 301, almost every station friends, usually do a simple 301 permanent redirect, will not take the "www" 301 Redirect to the "www" Home domain name. 301 Jump brings benefits also needless to say, is the search engine acknowledges the friendly jump way. Chat today is 301 if the jump wrong, the same trouble is not small, first look at the following figure.

In this case, due to the 301 redirection of the set error, resulting in the creation of an error with the parameter "/?id=1234" New page, and dynamic pages, such as the home page and the real homepage is the same. This means that the homepage is updated daily and the new page is updated accordingly. Think again, if this "Web" directory has n pages 301 redirect to the first page, it means to create n new pages, in other words, n a homepage, the consequences of this is self-evident.

This is a problem that needs to be solved, so it is difficult to solve this problem again. Find a lot of information on the Internet, ask many people did not find the answer. The difficulty is "/?" Here, it is painstaking. Finally give up 301, with JS jump this way to lose weight of the way to eliminate the wrong page, but in the end the whole came out. Let's see, the server supports the. htaccess file.

Options +followsymlinks
Rewriteengine on
#RewriteCond%{http_host} ^domain. com [NC]
# rewriterule ^ (. *) $ http://www. Domain。 com/$1 [l,r=301]
#RewriteLogLevel 3
#RewriteLog "Logs/rewrite.log"
#RewriteBase/
Rewritecond%{query_string} id=
#RewriteRule (. *) http://www. Domain。 Com/$1? [r=301]
Rewriterule ^$ http://www. Domain。 com? [l,r=301]

This is a special case that I've solved, and the code is saved. 301 Permanent redirect is easy to use, but with the wrong will bring a lot of trouble, very affected your site. Finally, remind to do 301 webmaster friends, check your settings, especially for multiple directories set 301 permanent redirect. This article by the investment venture http://www.9355.com/stationmaster original income, welcome to retain the link reprint, the Exchange Q281336241, thanks!

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.