Changing SMT to Use a Different Hosting Root

This topic applies to

Applies to

SuiteCommerce Web Stores | Site Management Tools

When you create a website, the Website Setup record specifies the HTML Hosting Root. When you implement Site Management Tools on that site, it utilizes the same HTML Hosting Root as the website. If you move the site to a different HTML hosting root, you will also need to create a new CMS SSP application that utilizes the new HTML Hosting Root for SMT content to continue to display and for SMT to continue to function. This is required because Site Management Tools and the website must utilize the same HTML hosting root.

To configure SMT to use a different HTML hosting root:

Note

The following procedure uses the sample folder name Custom Hosting Root. This is for example only. Your custom hosing root can be named differently.


  1. Publish any unpublished changes to your site. See Publish Content for more information.

  2. Make a copy of your SSP application in the new HTML hosting root folder. This process includes:

    • Creating the directories in the file cabinet, for example Custom Hosting Root/SSP Applications.

    • Copying the SSP application to the new SSP Applications folder.

    • Creating the new SSP application record and pointing it to the copy of the SSP application. See Create a SuiteScript 1.0 SSP Application Record

  3. Copy the NetSuite Inc. - CMS folder to Custom Hosting Files/SSP Applications folder in the file cabinet.

    Important

    The folder must be named NetSuite Inc. - CMS. Do not rename this folder or any of its subfolders.


  4. Create a new SSP application record for SMT. See Create a SuiteScript 1.0 SSP Application Record. Use the original SSP application record as your model.

    1. Give the application a unique, CMS-related name.

    2. Give the application a unique ID or leave the ID empty to use a system-generated ID.

    3. Set the Application Folder to Custom Hosting Root: /SSP Applications/Netsuite Inc. — CMS/CMS.

    4. Set the URL Root to /CMS.

    5. Enter a description of the CMS SSP application. The description should provide enough information to prevent confusion.

    6. Save the new application.

  5. Edit the Website Setup record to change the Default Hosting Root to Web Site Hosting Files : Custom Hosting Files.

  6. Link the new SSP application record to your site.

  7. Clear the website cache.

  8. Go to your site and log in to Site Management Tools.

    Important

    This is a crucial step so don’t forget it.


  9. Add simple text content to any page on your site and publish the change.

  10. After you confirm that the text content published correctly, delete the text content and publish the change to remove the text from your site.