SEO MASTERSEO TECHNOLOGY

Absolute and relative paths with SEO

The advantages of absolute path URLs are:

+) If someone plagiarizes your content, the links inside will point to your website. Some plagiarism is lazy, and even the links inside have been copied.

+) If the webmaster can’t do 301 steering , so there is a problem with URL normalization, using an absolute path helps the link point to the selected URL version. Assume that the webmaster cannot get from the URL

Http://domain.com

Do 301 to

Http://www.domain.com

The version that the webmaster hopes to be included is the second one with www. Links to all web pages use absolute paths directly like:

Http://www.domain.com/article.html 
http://www.domain.com

The link URL is hard-coded into the HTML file. This way even if a spider or user enters the http://domain.com version, such as:

Http://domain.com/article.html

If the link on this page uses an absolute path, it will link to:

Http://www.domain.com/article.html 
http://www.domain.com

After the user clicks on these hard-coded links, they will return to the version with www. This also helps search engine spiders identify which version is what you want.

+) Even if you move the page to a location, the link inside points to the correct URL.

-) The disadvantage is that unless the link is dynamically inserted, there is no way to test it on the test server. Because the link inside will point directly to the real domain URL instead of the URL in the test server.

-) Unless the link is dynamically inserted, moving the content page will be difficult. Because the location of the content page changes, the links on other pages may not change, and point to the original hard-coded absolute path.

The relative path advantages and disadvantages are just the opposite. The advantage is:

+) Moving content is easier.

+) It is also easier to test on a test server.

-) Disadvantages, when the content page is changed to a location, the link is prone to failure.

-) It is easier to be copied and collected.

However, many acquisition software can automatically identify absolute and relative paths. So using absolute paths helps to copy your own links to the collection site, which is only valid in some cases.

So usually I’m suggesting that it’s easier to use relative paths unless you can’t do 301 steering and thus have serious URL normalization issues. Under normal circumstances, the relative path does not have any side effects on the website SEO , and the absolute path does not have any special benefits. The possibility of errors, such as search engine error judgment URLs, is very, very low.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button