Site Management

Create a new site configuration

Before creating a site configuration, you should have created the root page of your site in the page tree.

The site configuration is stored in a file called config/sites/my_site/config.yaml. For your convenience, you can edit this file using the backend module: Site Management > Sites.

Available root pages should be listed in this module. Click the button Add new site configuration next to the relevant page to create a site configuration for it.

In the next step, you can enter some basic information about the site.

The site identifier can be arbitrary, so we use "example_site" here. The entry point should be a URL pointing to the web root. In this example, it is a local URL generated by DDEV.

In the next two tabs, you can define error handling, such as a custom 404 page, and static routes, for example, to a robots.txt file.

You can read more about Site Handling in the reference "TYPO3 Explained".

After saving, a new file should be created in your project:

config/sites/example_site/config.yaml
base: 'https://example-typo3131.ddev.site'
languages:
  -
    title: English
    enabled: true
    locale: en_US
    hreflang: ''
    base: /en/
    websiteTitle: ''
    navigationTitle: English
    flag: en-us-gb
    languageId: 0
rootPageId: 7
websiteTitle: 'My example page'
Copied!