The relative path has the following advantages:
1. Easy to move content
2. Easy to test
Disadvantages
1. When the page location changes, the link is prone to failure.
2. More likely to be copied and collected
Advantages of absolute path URL:
1. If someone collects your website, the link will also point to your website
2. Even if you move the webpage location, the link in it still points to the correct URL disadvantage, and the program is not conducive to testing, because the above links are all absolute links, and you can test them by putting them on the server.
Many people think that the absolute path is superior to the relative path in SEO. In fact, this is not the case, but from the SEO perspective, the two paths are exactly the same in the eyes of search engines, when a spider analyzes all the URLs of a page
1. Delete unnecessary links
2. Get useful links
Useful links include absolute and relative paths. The processing method is as follows:
1. Directly obtain the absolute link
2. For example, convert the "/c.html" link to a domain name +/c.html to get
3. For example, convert the link of “c.html to get it from +c.html.
4. Some links such as "../cat.html" are also processed.
From the search engine perspective, all these links are the same, and they are a complete link to their database. In addition, link conversion is a necessary basic function of the spider and will not cause any problems to the spider, from the perspective of SEO, the two paths are exactly the same in the eyes of search engines.