---
schema_version: "1"
id: 0161ba9af303bfa4bbd0effed0e6290e263e84899ef767b98f665c1ba9ee4241
title: Create and Edit Salesforce Sites
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/sites_creating_and_editing_sites.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.sites_creating_and_editing_sites.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9bb6ca23d2beaf9b351fa1883e503ccf53e4f496fe57539c6daf5d7fbe37dcad
description: After you enable Salesforce Sites, create a Salesforce Site. Or, update an existing site.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Create and Edit Salesforce Sites

After you enable Salesforce Sites, create a Salesforce Site. Or, update an existing site.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Developer</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d92503e72">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e72 ">To create and edit Salesforce Sites:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e72 ">
              <p>Customize Application</p>
              <p>OR</p>
              <p style="margin-bottom:0;">Create and Set Up
                Experiences</p>
            </td>

          </tr>
        </tbody>
      </table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)

Note You define custom URLs from Domain Management in Setup.

1. From Setup, enter Sites in the Quick Find box, and select **Sites**.
2. Click **New**, or click **Edit** to modify an existing site.
3. On the Site Edit page, configure the following settings.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)
    
    Note Site Label, Site Name, Site Contact, and Active Site Home Page are required fields.
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col style="width:33.33333333333333%">
              <col style="width:66.66666666666666%">
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d92503e158">Field</th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d92503e161">Description</th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Site Label</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">The name of the site as it appears in the user
                  interface.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Site Name</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">The name used when referencing the site in the SOAP API.
                  This name can contain only underscores and alphanumeric
                  characters, and must be unique in your org. It must begin
                  with a letter, not include spaces, not end with an
                  underscore, and not contain two consecutive
                  underscores.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Site Description</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">An optional description of the site.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Site Contact</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">The user who receives site-related communications from
                  the site’s visitors and Salesforce.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Default Record Owner</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">The user who owns all new records that unauthenticated
                  guest users create. For considerations, especially when
                  updating sites created before Summer ’20, see <a href="https://help.salesforce.com/articleView?id=platform.networks_guest_record_default_owner_best_practices.htm&amp;type=5&amp;language=en_US" target="_blank">Best Practices and Considerations for
                    Using the Guest Record Default Owner</a> in
                  Salesforce Help.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Default Web Address</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">The unique Salesforce Site URL for this site. Salesforce
                  Sites provide the first part of the URL based on the domain
                  name that you registered. You must add a unique site name to
                  the end. Unless you configure a custom address through a
                  domain name registrar, this URL is the one that the public
                  uses to access your site.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Active</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">Select when you’re ready to make your site available to
                  the public. You can also activate your site from the Sites
                  and Site Details pages. When the site is inactive, users see
                  the page specified in the Inactive Site Home Page
                  field.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Active Site Home Page</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">
                  <p>The landing page that users are directed to when this
                    site is active. Use the lookup field to find and select the
                    Visualforce page that you developed for your site’s home
                    page. Choose the <strong class="uicontrol">UnderConstruction</strong>
                    page if you want to test your site.</p>
                  <p>For ideas sites, you
                    must use the IdeasHome page. For answers sites, use the
                    AnswersHome page. If you don’t use a site template, your
                    site inherits its look and feel from its associated
                    portal.</p>
                  <p style="margin-bottom:0;">If you deployed a site before the Summer
                    ’10 release, you can set AnswersHome as your default
                    landing page if you create a Visualforce page using
                    <code>&lt;apex:page
                                                action="{!URLFOR('/answers/answersHome.apexp')}"/&gt;</code>.
                  </p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Inactive Site Home Page</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">The landing page that users are directed to when this
                  site is inactive. Use the lookup field to find the page that
                  you want to use. You can, for example, select a page to
                  indicate that the site is under construction or down for
                  maintenance.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Site Template</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">
                  <p>The template that provides the page layout and style
                    sheet for your site. The site template overrides the
                    formatting inherited from the associated portal. <span id="sites_creating_and_editing_sites__SitesTemplateSelect"><a name="sites_creating_and_editing_sites__SitesTemplateSelect"><!-- --></a>Use the lookup field to find a
                      template that you’ve developed, or use the provided
                      template.</span></p>
                  <p style="margin-bottom:0;">The site template specified here is
                    used only for Visualforce pages using the <code>$Site.Template</code>
                    expression.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Site Robots.txt</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">
                  <p>A file that determines which parts of your public site
                    that web spiders and other web robots can access. Search
                    engines often use web robots to categorize and archive
                    websites. HTML tags are not allowed because they are not
                    compatible with <samp class="filepath">robots.txt</samp> spiders. For
                    Visualforce pages, add <code>contentType="text/plain"</code> to the <code>&lt;apex:page&gt;</code>
                    tag.</p>
                  <div>
                    <p>This example disallows all robots from indexing
                      all
                      pages.</p>
                    <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code class="language-markup">&lt;apex:page contentType="text/plain"&gt;
    User-agent: *  # Applies to all robots
    Disallow: /    # Disallow indexing of all pages
    &lt;/apex:page&gt;</code></pre>
                  </div>
                  <div>
                    <p>This example
                      allows all robots to index all
                      pages.</p>
                    <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code class="language-markup">&lt;apex:page contentType="text/plain"&gt;
            User-agent: *  # Applies to all robots
            Disallow:      # Allow indexing of all pages
            &lt;/apex:page&gt;</code></pre>
                  </div>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Site Favorite Icon</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">The icon that appears in the browser’s address field when
                  visiting the site. Use this field to set the favorite icon
                  for your entire site instead of for each page. Due to
                  caching, changes are reflected on your site one day after
                  you make them.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Analytics Tracking Code</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">The tracking code associated with your site. Services
                  such as Google Analytics can use this code to track page
                  request data for your site.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">URL Rewriter Class</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">An Apex class to use for rewriting URLs for your site,
                  from Salesforce URLs to user-friendly URLs. With this class,
                  you can make rules to rewrite site URL requests typed into
                  the address bar, launched from bookmarks, or linked from
                  external websites. You can also create rules to rewrite the
                  URLs for links within site pages.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Enable Feeds</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">The option that displays the <a href="https://help.salesforce.com/s/articleView?id=platform.feeds_overview.htm&amp;release=264.0.0&amp;type=5" title="Syndication feeds give users the ability to subscribe to changes within Salesforce Sites and receive updates in external news readers. Simply by defining a SOQL query and mapping, you can syndicate changes to public data to your end users. You can create one or more syndication feeds for your organization's public sites or any Visualforce page. The syndication feed displays the records specified by a SOQL query. Users can subscribe to the feed and view the feed when they visit the site or page.">Syndication Feeds</a> related list, where you can
                  create and manage syndication feeds for users on your public
                  sites. This field is visible only if you have the feature
                  enabled for your organization.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Clickjack Protection Level</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">
                  <p>You can set the clickjack protection for a site to one of
                    these levels:</p>
                  <ul>
                    <li><strong>Allow framing by any page (no protection)</strong>:
                      The least secure level.</li>

                    <li><strong>Allow framing of site pages on external domains
                        (good protection)</strong>: Allows framing of your site
                      pages by pages on external domains that are added to
                      the Trusted Domains for Inline Frames list.</li>

                    <li><strong>Allow framing by the same origin only
                        (recommended)</strong>: The default level for sites.
                      Allows framing of site pages by pages with the same
                      domain name and protocol security.</li>

                    <li><strong>Don’t allow framing by any page (most
                        protection)</strong>: The most secure level, but it can
                      cause certain pages to appear as blank pages. To
                      avoid this issue, use the default setting
                      instead.</li>

                  </ul>
                  <p style="margin-bottom:0;">If you select <strong class="uicontrol">Allow framing of site or
                      community pages on external domains (good
                      protection)</strong>, select <strong class="uicontrol">Add
                      Domain</strong> in the Trusted Domains for Inline
                    Frames section, enter the domain you want to allow
                    iframes on, and select <strong class="uicontrol">Save</strong>.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Lightning Features for Guest Users</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">
                  <p>Determines whether unauthenticated guest users can view features available
                    only in Lightning. If this setting is disabled, Lightning features don’t load
                    for those users.</p>
                  <p style="margin-bottom:0;">If you disable this setting in a Lightning site,
                    unauthenticated users can’t access any Lightning pages, including Login pages,
                    Error pages, and surveys. Replace those pages with custom Visualforce pages
                    before you disable this setting.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Enable Content Sniffing Protection</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">Prevents the browser from inferring the MIME type from
                  the document content. It also prevents malicious files from
                  being executed as dynamic content (JavaScript, style
                  sheet).</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Enable Browser Cross-Site Scripting Protection</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">Protects against reflected cross-site scripting attacks.
                  When a reflected cross-site scripting attack is detected,
                  the browser renders a blank page with no content.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Referrer URL Protection</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">When loading pages, the referrer header shows only
                  Salesforce.com rather than the entire URL. This feature
                  eliminates the potential for a referrer header to reveal
                  sensitive information that could be present in a full URL,
                  such as an org ID. This feature is supported only for Chrome
                  and Firefox. </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Allow only required cookies for this site</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">The option to only allow required Salesforce-supplied
                  cookies within a Salesforce Site. When this setting is
                  turned off, we allow all cookie types: required, functional,
                  and advertising.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Redirect to custom domain</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">
                  <p>If an HTTPS custom domain, such as
                    <samp class="filepath">https://www.example.com</samp>, serves
                    this site, redirects requests from the site’s system-managed
                    URLs to that custom domain. System-managed site URLs end in
                    <samp class="filepath">*.force.com</samp>,
                    <samp class="filepath">*.my.salesforce-sites.com</samp>, or
                    <samp class="filepath">*.my.site.com</samp>.
                  </p>
                  <p style="margin-bottom:0;">If multiple custom
                    domains serve this site, requests are routed to the
                    site’s primary custom URL only if it’s an HTTPS custom
                    domain. Otherwise, requests are redirected to the first
                    HTTPS custom domain associated with this site, in
                    alphanumeric order. If no HTTPS custom domain serves
                    this site, this option has no effect.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Cache public Visualforce pages</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">When this option is enabled, proxy servers cache the
                  sites’ publicly available pages only for unauthenticated
                  guest users. When this setting is disabled, all of this
                  site’s Visualforce pages can be cached in the web browser
                  for both authenticated and unauthenticated users, and each
                  Visualforce page’s <code>cache</code> attribute controls whether the page is
                  cached in the end user's web browser. For more information,
                  see <a href="https://help.salesforce.com/s/articleView?id=platform.sites_caching.htm&amp;release=264.0.0&amp;type=5" title="Caching your Salesforce Site pages, attachments, and static resources can improve page load times and site performance. It can also help you avoid reaching bandwidth and service request time limits.">Configure Site Caching</a>.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e158 ">Guest Access to the Support API</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d92503e161 ">When this option is enabled for a Salesforce site or
                  Experience Cloud site, unauthenticated users are allowed to
                  access the Support API.</td>

              </tr>
            </tbody>
          </table>
4. Click **Save**.

#### See Also

- [Set Up Salesforce Sites](https://help.salesforce.com/s/articleView?id=platform.sites_setup_overview.htm&release=264.0.0&type=5 "Enable Salesforce Sites and create public websites and applications that are directly integrated with your Salesforce org—without requiring users to log in with a username and password.")
- [Configure Salesforce Sites](https://help.salesforce.com/s/articleView?id=platform.sites_configuring_sites.htm&release=264.0.0&type=5 "After you create your site, configure public access and login settings, then activate the site. Optionally, you can also create a syndication feed for your site, and assign error pages for standard errors.")