URLs
URL Structure
A URL is built from these parts, in order:
- Domain: Main site domain.
- Site Path (optional): Identifies a site instance (e.g.,
/blog). - Language Path (optional): Language segment (e.g.,
/en,/nl). - Content Path: Specific page or content (e.g.,
/contact).
Format:
http(s)://[www.]domain[/site-path][/language-path]/content-pathNotes:
- SSL can be enforced (redirect to
https://). - Optionally choose
wwwor non-www. - Each domain can have multiple languages, each with an optional path.
- Content path is defined in
content.
Examples
https://example.com/nl/contact- Domain:
example.com - Language path:
/nl - Content path:
/contact
- Domain:
https://example.com/blog/de/contact- Domain:
example.com - Site path:
/blog - Language path:
/de - Content path:
/contact
- Domain:
https://example.com/contact- Domain:
example.com - Content path:
/contact
- Domain:
See RequestServiceProvider.php for implementation details.