What does 301 redirect mean? What are the methods of 301?

云罗郡主
Release: 2018-12-29 17:12:12
Original
6821 people have browsed it




#1: What is a 301 redirect

301 redirect is a very important setting for SEO. It transfers users and search engines to the correct domain name. The website is redirected to another domain name. 301 redirect jumps from URL to another URL. It is a permanent transfer of code to search engine website visitors. Through 301 redirects, search engines and website visitors will be forced to transfer to the configured URL.

What does 301 redirect mean? What are the methods of 301?

2: Why must you set up a 301 redirect

1.301 redirect is a relocation of the website, because you need to redirect the visit A certain domain name or page is transferred to another domain name or page due to other reasons.

2. In order not to reduce the SEO evaluation to overlapping content in search engines, with 301 redirects we avoid search engine penalties by specifying a regular page from several pages, for example without www The domain name jumps to the domain name with www, or the suffix of index.html does not jump to the index.html page.

3: How to set up 301 redirection

1. There are many methods for 301 redirection, but different server setting methods are also different. On the Pagoda server, find Website management, there is a 301 option in the website management, and then set the 301 jump.

What does 301 redirect mean? What are the methods of 301?

2. You can also use the .htaccess file to set 301

RewriteEngineOnRewriteCond%{HTTP_HOST}^aaa.com [NC]RewriteRule^(.*) $ http://www.bbb.com/$1 [L,R=301].

The above is not the 301 jump method of http. If you want to perform https301 jump, you need to add one to the code. https, as follows:

RewriteEngineOnRewriteCond%{HTTPS}!^on$ [NC]RewriteCond%{HTTP_HOST}^(www.)?aaa.com$ [NC]RewriteRule^(.*)$ https:/ /www.bbb.com/$1 [R=301,L]

Four: 301 detection

Before we redirect 301, we must check whether there is Success, the simplest way is to use the Aizhan tool for detection, URL: https://tools.aizhan.com/pagestatus/ If the return code is 301, the comparison setting is successful.

The above is what does 301 redirection mean? All the 301 methods are introduced. If you want to know more about

HTMLTutorial, please pay attention to the php Chinese website.





##

The above is the detailed content of What does 301 redirect mean? What are the methods of 301?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!