Home  >  Article  >  Topics  >  What are the rules for internal linking?

What are the rules for internal linking?

little bottle
little bottleOriginal
2019-05-25 15:27:303260browse

Internal links, as the name suggests, are the mutual links between content pages under the same website domain name (the content of your own website links to the internal pages of your own website, also called intra-site links). A reasonable link structure within the website can improve search engine inclusion and website weight. Below I will take you through the rules for setting up internal links.

What are the rules for internal linking?

#1. In the process of building internal links, we should use HTML text links and avoid using Flash and JS codes for internal links.

Because search engine spiders cannot crawl the links in Flash and JS codes well.

2. Use absolute addresses for internal link URLs.

Absolute address links can effectively solve the problem of URL standardization.

Comparison between absolute paths and relative paths Absolute Path (Absolute Path) refers to the complete path of a file with a domain name, such as: http://seo.aizhan.com/base/231.html

Relative Path (Relative Path) refers to the path relationship with other files (or folders) caused by the path where this file is located, such as: /base/231.html

Absolute path advantages

When it is plagiarized, the absolute path link still points to the original website, increasing the website's external links and weight.

When RSS is entered, the original website link of the page is still retained.

Helps to prevent and solve URL standardization problems.

Move the web page location, and the link still points to the correct URL.

Disadvantages of absolute paths

It’s not that dynamic insertion is not easy to test on the test server.

It would be more difficult to insert a mobile page dynamically.

There are a lot of codes.

Advantages of relative paths

It is easier to move content without having to update links on other pages.

It is also easier to test on the test server.

Save code.

Disadvantages of relative paths

Being plagiarized and collected does not bring any benefit to the website.

The search engine may make an error when parsing the URL and cannot correctly read the link URL on the page.

3. Use Nofollow to prevent the loss of page weight.

Baidu states that it supports the Nofollow tag to prevent some links from passing weight.

Nofollow

Add Nofollow tags to links that have no value

Do not participate in link voting, reducing the waste and export of page weight

The above is the detailed content of What are the rules for internal linking?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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