Modify the Default controller.html File
-
Open the site you want to modify in Site Builder and set it to Edit.
-
Select an existing update or create a new one.
-
Click Settings in the side navigation menu and then Site.
-
In the Controller File section, click Download default controller file.
-
Save to your local drive and customize the controller.html file with your edits.
-
When done editing, return to the settings page of the site and in the Controller File section, click Select file to upload.
-
Navigate to the modified controller file and upload it.
Note:
Customizations to the controller file are only used in online sites. They will not be used when editing a site or in site previews. For the changes to take effect after uploading a custom controller.html file for a site, the site update must be committed and the site must be published.