About 301 Error Jumps

Source: Internet
Author: User

301 error is mainly the domain name after the replacement, the search engine is still using your original domain address to visit your site, if the search engine crawled to get a 301 error, then the search engine will know that you have changed the domain name, the next time you will use the new domain name to index your site, Of course you have to tell the search engine what your new domain is

"Quote Baidu Pull"

//need to be configured in Webconfig<system.webServer> "301html"Path="*.html"verb="*"Type="System.Web.UI.PageHandlerFactory"Resourcetype="Unspecified"precondition="Integratedmode"/> //Modify the Global.asax file  voidApplication_BeginRequest (Objectsender, EventArgs e) {        if(HttpContext.Current.Request.RawUrl.Contains ("123.html"))//old page{Response.statuscode=301; Response.Redirect ("http://www.baidu.com");//Jump AddressResponse.End (); }    }    
View Code

About 301 Error Jumps

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.