[i18n-drafts] [questions/qa-apache-lang-neg] Canonical URL and links without extensions (#666)

xfq has just created a new issue for https://github.com/w3c/i18n-drafts:

== [questions/qa-apache-lang-neg]  Canonical URL and links without extensions ==
https://www.w3.org/International/questions/qa-apache-lang-neg.en.html#naming

> If you put the .html extension last you make it easier to to read or edit the files if they are not on an Apache server, but to access the resource on the Apache server the name must always be typed in a browser address bar or identified in a hyperlink, etc., **without the extensions** (eg. `<a href="example">...</a>`).

I think this method may be problematic, because it is impossible to distinguish different language versions in the URL. When adding the canonical URL with `rel="canonical"`, different language versions have the same canonical URL, and search engines cannot correctly distinguish different language versions when crawling, unless we use the `rel="canonical"` HTTP header. This should probably be mentioned in the article.

Please view or discuss this issue at https://github.com/w3c/i18n-drafts/issues/666 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 23 May 2025 23:30:28 UTC