Mapping a folder to a domain or sub-folder

To begin hosting a static site, you must map a folder from the File Store service to a domain or a sub-folder. Doing so lets you access the static site from that selection.

Before you start

Steps

To map a folder to a domain or sub-folder:

  1. In your Squiz DXP organization home page, click the Configuration  Static sites card.

    Image of static site configuration screen
  2. Select the domain for which you wish to add a mapping.

  3. Click the Add route button to add a route to the domain at the top of the list.

    add route button
    Use the Edit action under the more_horiz menu to add a route to other domains in the list.
  4. Enter the Path URL, if required. This field is optional. This is the sub-directory specification for your site domain. For example, www.my-website.com/static-site

    mapping screen
  5. Select the Repository path. The existing File Store directory where your static site or files are located.

    Files in File Store must be public to be served through a static route. At a minimum, a 404.html file is required in the target folder.
  6. Click Add to map the repository path.

  7. After a few minutes, confirm the mappings are available as the process can take a short while to complete.

Unresolved mappings fall back to the associated Squiz Content Management instance. Read About static site file resolution for more information.