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?

6

1 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.