0

I'm implementing hreflang on my web app.

Google does not mention anything on https://support.google.com/webmasters/answer/189077?hl=en

But they use it (trailing slashes) on their own Sitemap.

https://www.google.com/sitemap_search.xml

enter image description here

Does it make any difference at all?

cbdeveloper
  • 978
  • 1
  • 5
  • 14

1 Answers1

1

XML, which XHTML is, requires self-closing tags to have a closing slash.

In a URI, a trailing slash indicates a directory resource.

In a URI, no trailing slash indicates a resource; such as a file.

On a top level domain, such as https://example.net/, browsers will drop the closing slash but I can't think of the details at the moment.

Rob
  • 4,613
  • 2
  • 20
  • 25