www.<sitename>.com/[language]When a letter combination that matches any of the .NET Culture Codes is in that position, it gets resolved as a language (even if the language is not registered for Sitecore XP instance) and is not used to resolve anything else (for example, an alias or an item). If a resolved language is not identified, an error similar to the following appears:
ERROR Attempt to register language failed. Language: custom-item-name-with-dashes
Exception: System.UnauthorizedAccessException
Message: Access to the path 'C:\Windows\Globalization\custom-item-name-with-dashes.nlp' is denied.
Possible ways to change the described behavior depend on the requirement to include the language as part of the URL.