What does website 301 mean?

云罗郡主
Release: 2019-01-16 09:10:16
Original
20857 people have browsed it





What does website 301 mean?

##1: What does website 301 mean?

The permanent removal of the page (301 redirect) is a very important "automatic redirection" technology. URL redirection is the most feasible method. When a user or search engine sends a browsing request to a website server, one of the status codes in the header information in the HTTP data stream returned by the server indicates that the web page has been permanently transferred to another address.

2: For the correct implementation of 301 redirection, there are several methods for your reference:

1. Add the 301 redirection instruction in the .htaccess file.

2. Applicable to users using Unix network servers. Use this command to notify the search engine spider that your site file is not under this address. This is a common method. In the form: Redirect 301/url.

3. Applicable to users using Window network server. Complete the 301 redirect in the system administrator configuration area of ​​the server software.

4. Use "mod_rewrite" technology.

Changes made through this technology will be reflected in the .htaccess file, in the form of:

Options FollowSymLinks

RewriteEngine on

RewriteCond % ^yourdomaincom

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

Use ASP/PHP to implement 301 redirection:

Code Already introduced above.

3: Optimization Significance

1. After the website revision is completed, the new version will be put online first, and the new and old content will be kept online for a period of time.

2. After the new and old content exist for a period of time at the same time, and the new version of the content has started to be included, set a 301 jump for the old and new content, and point the old version of the content to the corresponding content of the new version.

3. 301 redirection is helpful for determining the preferred domain of the website. 301 redirection for multiple paths to the same resource page helps to concentrate the URL weight.






#

The above is the detailed content of What does website 301 mean?. 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!