ConfigurationMultiple Domains and Websites

Multiple Domains and Websites

Sana Commerce 8.1
Your provider

Configure Multiple Domains in IIS 7

When a project has multiple sites, additional site nodes can be added under the site node. In order to do this:

Add the additional domain name in IIS:

Step 1: Open Internet Information Services (IIS) Manager.

Step 2: Locate your website and select it.

Step 3: Click 'Bindings' on the 'Actions' pane on the right side.

Step 4: Click the 'Add' button in the 'Site Bindings' window.

Step 5: You have to fill in three fields: the IP address of your website, the TCP port (default is '80') and a host name, which is the additional domain name. For requesting a new domain name, please ask your system administrator:


Adding an Additional Domain Name in IIS 7

Add a new record in the 'WebsiteDomains' table of the SQL database: 

Step 1: Generate GUID which should be inserted into the 'Id' column. To generate GUID type the following command in the new query and execute it:

print newid()
This command will automatically generate the GUID. You can copy and past this GUID into the 'Id' column of the 'WebsiteDomains' table.

Step 2: Enter the ID of the website for which the additional domain should be set into the 'WebsiteId' column.

Step 3: Specify the additional domain name in the 'Domain' column:

 
Adding an Additional Domain Name for the Website

Step 4: Each website must have the default domain. To configure the default website domain set the 'True' value in the 'IsDefault' column in the 'WebsiteDomains' table.

Step 5: Request a new license file for the new domain. Please read about requesting a license file here.

ConfigurationMultiple Domains and Websites