I have a multilingual site configured to use path prefix
for URL language detection.
When no prefix is used in the URL, the default language is assumed. How can I change this behavior?
I want the site to return content only when a language prefix is set in the URL, otherwise return a "page not found" error.
Reasoning behind this functionality:
- Preventing duplicate content in search engines
- Keeping everything well organized (under language prefixes)
- Avoiding users to be able to view content without a language prefix and thus potentially link to it (loosing link juice)
Edit: added reasoning.