Implementation of auto-redirecting technology and 301 redirection impact on SEO (arrangement and modification)

Source: Internet
Author: User
Implementation of auto-redirecting technology and 301 redirection impact on SEO (arrangement and modification)

I found it online, but the original articles have many errors, and some of them are not detailed enough. I have corrected and supplemented
: Mad: I don't know why I am not outdated yet?
For the implementation of the automatic steering technology, see
I. What is auto-redirecting )?
Automatic redirection is also called automatic redirection. Automatic jump refers to a technology that automatically redirects a user to another webpage address when a user logs on to a website. The redirected webpage address is acceptable.

It is other webpages in the website, or other websites.
Generally, a browser receives a webpage containing code that automatically loads other webpages. The page may be converted on the server. In this case, the browser only receives

To a page, and automatic redirection often means that the page received by the browser has the function of automatically sending users to other pages.
The rational application of automatic redirection technology includes switching users to the webpage version of the specified browser, and transferring people to the new domain name after the website domain name is changed or deleted. But now

This technology is often used by search engine optimizers as a way to improve the ranking of search engines for websites. For example, if you first make a highly optimized webpage for a search engine

This is what we usually call "bridge page", and then submit this page to the search engine for a good ranking. However, when a Search user clicks the webpage through the search result list of the search engine

After the list is displayed, it is automatically directed to a website address that the user has no intention of accessing. Search engines often think that the web page automatically redirects is misleading to readers, so it will

Or the website has been disciplined, but some automatic redirection methods cannot be detected yet.

1. Meta Refresh tag Automatic Steering Method
Because the search engine can read HTML and meta tags is also HTML, the search engine can automatically detect this automatic redirection method. Therefore, no matter what the website turns out

It is easy for search engines to mislead readers and be punished. However, if the jump delay time is set appropriately, the search engine will not regard it as cheating.
The Meta Refresh tag can only be placed in the <Meta http-equiv = "refresh" content = "10; url = http://www.baidu.com">
"10" indicates that the browser automatically jumps to the Baidu after loading the page for 10 seconds.
This method is often seen in forums. If a message is sent to the Forum, a confirmation page is displayed first. A few seconds later, the confirmation page is automatically redirected back to the current forum page.
From the perspective of search engine optimization, it is generally not necessary to automatically turn to a delay. However, if you use the Meta Refresh logo for redirection, you must set the delay time

Less than 10 seconds.
2. "JavaScript" automatic redirection Method
Because JavaScript cannot be parsed, the search engine cannot detect (automatically detect) Automatic redirection using JavaScript scripts. The javascript automatic redirect script can be placed in

If you want to jump to any location of a webpage immediately, you can put it at the top of the <Script language = "JavaScript">
Location. Replace ("http://www.baidu.com ")
</SCRIPT>
The http://www.baidu.com refers to the specific redirection Destination Address, with the relative/absolute URL address (add absolute address must add http ://).
The advantage of using JavaScript to implement automatic redirection is that the target URL accessed by the user is not retained in the history of the user's browser. If the user presses the return button to return

Jump to the webpage before the jump, instead of the jump page that contains the Javascript automatic redirect script, so it does not appear when the user clicks the return button and returns to the redirect page, then the page automatically jumps

Go to the embarrassing situation on the page that the user originally wanted to leave.
If necessary, the Javascript automatic redirection script can be stored in an external file and loaded through the following command line. "1. js" is the path and file of the external file.

Component Name:
<Script language = "JavaScript" src = "1.js"> </SCRIPT>
JS file practices, put <script language = "JavaScript">
Location. Replace ("http://www.baidu.com ")
</SCRIPT> converted to JS Code, if you do not compile, you can use the code from HTML format into JS format (http://tool.chinaz.com/Trans/Html_Js.asp) tool,

Converted to document. writeln ("<script language =/" javascript/"> ");
Document. writeln ("location. Replace (/" http: // www.baidu.com /")");
Document. writeln ("</SCRIPT>"); save this code as a JS file.
Note: If you need to implement instant redirection or do not want people to see the page before the redirection, JavaScript scripts are usually used. In this case, place the Javascript script

In the 3. Form automatic redirection (I have not succeeded in this experiment. If you are interested, you can find out)
The "crawling" program of the search engine does not fill in the form, so they do not notice the submission form, so they can use the form to achieve automatic redirection (redirection) without allowing the search

Detection.
For forms, it is seldom realized that the URL contained in the form action parameter is actually the URL requested by the browser to the server. The browser will

Add some parameters in the format of name = value for special treatment. If nothing happens, the browser still sends a request to the server for the URL.
You can use JavaScript scripts to submit a form when loading a page. The following is an example of automatic form submission using JavaScript:
<Script language = "JavaScript"> <! -- Document. myform. Submit ()
// -->
</SCRIPT>
<Form name = "myform" Action = "pagename.html" method = "get"> </form>
Specifically, the parameter myform.zip can be any name, and the relative/absolute URL address can be used for the parameter pagename.html.

Summary
If the visitor finally sees what they want to see, there is nothing wrong with the automatic redirection Technology in search engine optimization, and it is not immoral. However

Some people tend to use the "Automatic jump" technology, use the "bridge page" to attract visitors, and then send them to the pages or websites they have no intention of browsing. This approach will only cause access to users.

How can we expect the access traffic to be effectively converted to end customers?
301 Effect of redirection on Seo
During our website construction, we often encounter situations that require webpage redirection: Like website adjustment, such as changing the webpage directory structure, the webpage is moved to a new address, or, webpage Extension

Change the name. For example, if the application token changes .php to .htmlor .shtml, in this case, if no redirection is performed, the old address in the user favorites or search engine database can only be used to access the customer.

You will also get a 404 page error message, and the access traffic is lost in vain. For some websites that have registered multiple domain names, you also need to redirect the users who access these domain names to automatically jump to the master

Site, and so on.
Permanent page removal (301 redirection) is a very important "auto redirect" technology.
301 redirection promotes Search Engine Optimization
From the perspective of search engine optimization, 301 redirection is the most feasible method for URL redirection. When the domain name of a website changes, the search engine only indexes the new website.

The original external links under the old address will be transferred to the new address, so that the ranking of the website will not be affected by the change of the website. Similarly, when 301 is used for permanent redirection

When multiple domain names direct to the website's primary domain, the website rankings will not be negatively affected.
302 redirection affects Search Engine Optimization
So far, only Google has excellent processing capabilities for 302 redirection. That is to say, when a website uses the 302 redirection command to direct other domain names to the primary domain, only Google

The linked scores of other domain names will be included in the primary domain, while other search engines will only share the linked scores to multiple domain names, thus reducing the total number of links on the primary site. As a key factor in website ranking

The number of external links in one is affected, and it is natural that the website rankings are reduced.
To sum up, among the many redirection technologies, 301 permanent redirection is the most secure and ideal solution.
For the correct implementation of 301 redirection, there are several methods for your reference:
IIS server implements 301 redirection
* Open the Internet Information Service Manager and right-click the webpage or directory to be redirected. For details, see
* Select "redirect to URL"
* Enter the address of the target page in the dialog box.
* Remember to select "permanent redirection of resources"
* Of course, click "application"
[Url = 454] 454 [/url]
Apache server implements 301 redirection
Apache is much easier to implement than IIS. In Apache, there is a very important file. htaccess. Through setting it, You can implement many powerful functions. 301 redirection is only one of them.

The following is a reference to the original code:
Redirect SEO/http: // www. ***. Net/; redirect the contents in the directory http: // www. ***. Net/
Redirect permanent/old.html http: // www. ***. Net/New/Rewrite redirects the content of the website old.html to http: // www. ***. Net/New/
[Copy to clipboard]

By reasonably configuring the regular expression in the redirection parameter, you can achieve more complex matching. If you are interested, refer to the Apache manual.
Other methods include:
301 redirection in PHP

The following is a reference to the original code:
<? Header ("HTTP/1.1 301 moved permanently ");
Header ("Location: http: // ***. com");?>
[Copy to clipboard]

301 redirection under ASP

The following is a reference to the original code:
<% @ Language = VBScript %>
<% Response. Status = "301 moved permanently" response. addheader "location", "http: // ***. com">
[Copy to clipboard]

Redirection of 301 under ASP. NET

The following is a reference to the original code:
<SCRIPT runat = "server">
Private void page_load (Object sender, system. eventargs E)
{
Response. Status = "301 moved permanently ";
Response. addheader ("location", http: // ***. com ");
}
</SCRIPT>
[Copy to clipboard]

Check whether the configuration is correct.

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.