What does Google say about SEO? /
Quick SEO Quiz

Test your SEO knowledge in 5 questions

Less than a minute. Find out how much you really know about Google search.

🕒 ~1 min 🎯 5 questions

Official statement

301 redirects can use absolute or relative URLs, but using absolute URLs can simplify debugging.
27:21
🎥 Source video

Extracted from a Google Search Central video

⏱ 58:24 💬 EN 📅 17/11/2015 ✂ 19 statements
Watch on YouTube (27:21) →
Other statements from this video 18
  1. 1:09 Les redirections 301 suffisent-elles vraiment pour une migration de site réussie ?
  2. 8:10 Comment Google traite-t-il vraiment les demandes de révision après un piratage de site ?
  3. 10:35 Le contenu masqué dans les accordéons perd-il réellement son poids SEO ?
  4. 14:23 Faut-il vraiment abandonner les pages 'View All' pour faciliter l'indexation ?
  5. 15:36 Faut-il vraiment utiliser noindex,follow sur les pages de pagination ?
  6. 18:07 Pourquoi la cohérence des URL est-elle vraiment un signal de classement prioritaire ?
  7. 20:20 Les pages légales (CGV, confidentialité) influencent-elles vraiment votre SEO ?
  8. 22:10 Google adapte-t-il vraiment ses critères de classement selon les pays ?
  9. 23:52 Faut-il vraiment un lien DMOZ ou Wikipedia pour être reconnu comme une marque ?
  10. 26:01 Redirection ou switch de contenu : quelle méthode choisir pour une homepage internationale ?
  11. 28:26 Pourquoi Blogger peut-il envoyer des redirections invisibles à Googlebot ?
  12. 31:15 Le rel=noreferrer bloque-t-il vraiment le PageRank et nuit-il au SEO ?
  13. 31:47 Les sitemaps HTML servent-ils encore à quelque chose en SEO ?
  14. 33:01 Pourquoi vos termes de recherche disparaissent-ils de la Search Console ?
  15. 35:01 Googlebot crawle-t-il vraiment depuis les États-Unis et pourquoi ça impacte votre indexation internationale ?
  16. 38:54 Peut-on vraiment ranker sans backlinks en SEO ?
  17. 40:59 Les sitemaps images doivent-ils absolument lier images et pages de destination ?
  18. 50:20 Faut-il vraiment disavouer les redirections 301 pointant vers d'autres domaines ?
📅
Official statement from (10 years ago)
TL;DR

Google confirms that 301 redirects work interchangeably with absolute or relative URLs. However, John Mueller recommends using absolute URLs to simplify debugging and limit configuration errors. This preference primarily applies to complex technical environments where redirects may break during migrations or protocol changes.

What you need to understand

What is the technical difference between absolute and relative URLs?

An absolute URL contains the full path, including the protocol: https://example.com/page-a to https://example.com/page-b. A relative URL only includes the path: /page-a to /page-b.

Technically, the web server interprets both formats without distinction when processing a 301 redirect. The Googlebot follows the redirect whether it is written as absolute or relative. Both pass PageRank, ranking signals, and indexing history equally.

Why does Google recommend absolute URLs?

The difference lies in maintenance and debugging. A relative URL inherits the domain and protocol from the source page. If you migrate from HTTP to HTTPS or change subdomains, relative redirects can create infinite loops or point to incorrect destinations.

A concrete example: redirecting /old-page to /new-page relatively. If /old-page is accessible via HTTP and HTTPS, the redirect will work but retain the original protocol. With an absolute URL, you enforce the target protocol, eliminating any ambiguity.

In what contexts does this distinction become critical?

Site migrations represent the main use case. During a domain or structure change, relative URLs can behave unpredictably depending on the environment (development, staging, production). Testing becomes more complex.

Configurations with multiple subdomains or mixed protocols (HTTP/HTTPS) are also prone to errors. A relative redirect from blog.example.com to /article will point to blog.example.com/article, not www.example.com/article as often desired.

  • Both formats technically work to transmit SEO signals and PageRank
  • Absolute URLs eliminate protocol and domain ambiguity during redirects
  • Relative URLs pose problems mainly in multi-domain environments or during migrations
  • Debugging is significantly easier with absolute URLs in server logs
  • No impact on processing time or indexing speed between the two approaches

SEO Expert opinion

Does this recommendation hinge on real technical constraints?

Let's be honest: Mueller's recommendation is more about best practices than strict SEO optimization. Modern web servers have been handling relative URLs without difficulty for decades. Apache, Nginx, and IIS correctly interpret relative redirects in 99% of standard cases.

The real issue arises during complex configurations or migrations. I've seen sites lose 30% of organic traffic after a failed HTTPS migration due to poorly configured relative redirects creating HTTP→HTTPS→HTTP chains. Absolute URLs would have prevented this disaster by enforcing the target protocol at the very first redirect.

What concrete risks do relative URLs present?

The risk of redirect loops is the most insidious. If your .htaccess or nginx.conf combines relative rules and normalization redirects (www/non-www, HTTP/HTTPS), you can create loops that Googlebot will abandon after 5 hops. The result: deindexed pages.

Another trap: development environments. A relative redirect from /old to /new will work on dev.example.com but will point to dev.example.com/new in production if you forget to adjust. With absolutes, there is no ambiguity: it either works or fails immediately, facilitating testing.

In what cases do relative URLs remain relevant?

Stable single-domain sites without planned migrations can continue with relative URLs without risks. If your architecture never changes protocol or domain, the benefit of absolutes becomes marginal. You save a few bytes in headers, that’s all.

Internal redirects via JavaScript (location.href) sometimes benefit from relatives to remain agnostic of the domain during local testing. But be careful: Google executes JavaScript, so the same rules of chains and loops apply. [To be verified]: the precise impact on the crawl budget of relative JS redirects remains unclear in official documentation.

Warning: mixing relative and absolute URLs in the same redirect file creates a technical debt that is difficult to audit. Choose a format and stick to it throughout the site.

Practical impact and recommendations

What concrete changes are needed on an existing site?

Start by auditing your current redirects. Export your .htaccess or nginx.conf file and identify all rules containing relative URLs. A simple grep "/" | grep -v "http" will give you the list. On WordPress sites, also check redirection plugins like Redirection or Yoast that may sometimes generate relatives by default.

The conversion itself is trivial: systematically replace Redirect 301 /old /new with Redirect 301 /old https://example.com/new. Then test each redirect with curl -I to verify that the 301 code correctly points to the fully expected URL, including the protocol.

What critical mistakes should be avoided during conversion?

The redirect chain represents the most common error. If you had A→B relatively and B→C absolutely, converting A→B to absolute can create a chain A→B→C if you don’t directly consolidate A→C. Googlebot follows a maximum of 5 redirects: beyond that, the page is considered inaccessible.

Another trap: forgetting protocol variations. If /old exists in both HTTP and HTTPS, create two distinct rules redirecting to the same absolute HTTPS destination. Otherwise, one version will remain orphaned and can continue to be crawled, diluting your PageRank.

How can you check that the redirects function correctly after modification?

Use Search Console to identify 4xx and 5xx errors post-modification. Sudden spikes after a redirect change indicate a problem. Pay special attention to "Not Found (404)" errors, which may indicate malformed absolute URLs.

On the technical side, Screaming Frog in "follow redirects" mode will give you the complete mapping of chains. Anything exceeding 2 hops needs consolidation. Tools like Redirect Path (Chrome extension) also allow you to manually test redirects one by one during navigation.

  • Convert all 301 redirects to absolute URLs including protocol and domain
  • Eliminate redirect chains by consolidating A→B→C to a direct A→C
  • Test each redirect with curl -I before going live
  • Ensure that both HTTP and HTTPS versions of the source URLs redirect to the same absolute HTTPS destination
  • Monitor Search Console for 2 weeks after modification to detect crawling errors
  • Document the chosen format (absolute) in a technical style guide for the dev team
Using absolute URLs in 301 redirects eliminates protocol and domain ambiguities, simplifies debugging, and secures future migrations. The direct SEO gain is negligible, but the reduction of error risk justifies this practice. For complex sites with a history of migrations or multi-domain architectures, this optimization may require a thorough technical audit and strong server configuration expertise. If your infrastructure has dozens of nested redirect rules, consulting a specialized SEO agency may be wise to avoid critical errors during the conversion.

❓ Frequently Asked Questions

Les redirections 301 avec URLs relatives transmettent-elles moins de PageRank que les absolues ?
Non, Google traite les deux formats de manière identique pour la transmission du PageRank et des signaux de ranking. La différence se situe uniquement au niveau de la maintenance et du débogage, pas de l'efficacité SEO.
Faut-il convertir toutes les redirections relatives existantes en absolues immédiatement ?
Ce n'est pas urgent si votre site fonctionne correctement et n'a pas de migration prévue. Privilégiez les absolues pour les nouvelles redirections et convertissez les anciennes lors de refonte ou changement de protocole pour limiter les risques.
Les redirections relatives ralentissent-elles le crawl de Googlebot ?
Non, le temps de traitement est identique. Le serveur résout l'URL relative en absolu côté serveur avant de renvoyer la réponse au bot, sans impact mesurable sur la vitesse d'exploration.
Peut-on mélanger URLs absolues et relatives dans le même fichier de redirections ?
Techniquement oui, mais c'est une mauvaise pratique qui complique les audits et augmente les risques d'erreur. Choisissez un format et appliquez-le uniformément sur l'ensemble du site.
Les redirections JavaScript doivent-elles aussi utiliser des URLs absolues ?
C'est recommandé pour les mêmes raisons de débogage, même si Google exécute JavaScript et suit les redirections relatives. Les absolues éliminent les ambiguïtés lors des tests multi-environnements.
🏷 Related Topics
Domain Age & History AI & SEO Domain Name Redirects

🎥 From the same video 18

Other SEO insights extracted from this same Google Search Central video · duration 58 min · published on 17/11/2015

🎥 Watch the full video on YouTube →

Related statements

💬 Comments (0)

Be the first to comment.

2000 characters remaining
🔔

Get real-time analysis of the latest Google SEO declarations

Be the first to know every time a new official Google statement drops — with full expert analysis.

No spam. Unsubscribe in one click.