First, relative versus absolute URLs refers to how they are coded in links. Linking to http://www.example.com/somelink.html would be an absolute URL, while /somelink.html would be a relative URL.
John Mueller stated it does not make a difference for SEO.
It can be much easier to site migrate sites that are using relative URLs, as when you change the domain name or change from http to https, the internal links will continue to work without having to pass through a redirect chain until those links get updated with the new URL.
However, it is quite easy for site owners, especially novice site owners, to mess up relative URLs causing a crawling issue because the relative URLs were done incorrectly, such as being relative to an internal directory when it should have been mapped to the route. So for this reason, many site owners simply link to the absolute URL to prevent any incorrect links or just from an ease of copying a page link without having to cut it down to a relative link, and ensure it is mapped correctly.
Then someone in an unrelated question asked about the fact relative links can sometimes result in a lot of 404 errors. But Mueller says that both relative and absolute work as long as implemented correctly.
He also says that many problems are a result of URL rewriting done wrong. And that if it is done incorrectly, it isn’t just a Googlebot problem, but a problem all crawlers will have.
But regardless, using either is fine for SEO purposes. And crawling your own site – especially after a major structure, URL or site change – can often reveal problems that Googlebot will also have, whether it is an issue with incorrectly done relative URLs or a myriad of other issues that can be discovered with a crawl of the site.
Jennifer Slegg
Latest posts by Jennifer Slegg (see all)
- 2022 Update for Google Quality Rater Guidelines – Big YMYL Updates - August 1, 2022
- Google Quality Rater Guidelines: The Low Quality 2021 Update - October 19, 2021
- Rethinking Affiliate Sites With Google’s Product Review Update - April 23, 2021
- New Google Quality Rater Guidelines, Update Adds Emphasis on Needs Met - October 16, 2020
- Google Updates Experiment Statistics for Quality Raters - October 6, 2020