---
schema_version: "1"
id: c0e0e05fee000cd8ea8f3462928e428285b004cc1f4ee22fc0bd75b05a1f5190
title: Use SEO-Friendly URLs in Your Enhanced LWR Site
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/experience/264-0-0/exp_cloud_build_seo_friendly_urls.md
canonical_url: https://help.salesforce.com/s/articleView?id=experience.exp_cloud_build_seo_friendly_urls.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 7eb79c79e0f727023ee8ef97712d0fa954497c6f972174e17b76ce59c54fa161
description: Boost organic traffic to your site by improving search engine optimization (SEO) with new URL configuration solutions. SEO-friendly URL snippets, or slugs, improve SEO by replacing the record ID in the URL with relevant and human-readable information, ensuring that your site’s pages are optimally surfaced in search engines.
products:
  - Experiences
release: "264"
---
# Use SEO-Friendly URLs in Your Enhanced LWR Site

Boost organic traffic to your site by improving search engine optimization (SEO) with new URL configuration solutions. SEO-friendly URL snippets, or slugs, improve SEO by replacing the record ID in the URL with relevant and human-readable information, ensuring that your site’s pages are optimally surfaced in search engines.

### 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: Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Applies to: <a href="https://help.salesforce.com/s/articleView?id=experience.exp_cloud_basics_glossary.htm&amp;type=5&amp;language=en_US" target="_blank">LWR sites</a></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="d15346e81">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d15346e81 ">To customize or publish an Experience Cloud site:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d15346e81 ">
              <ul>
                <li>Create and Set Up Experiences AND View Setup and Configuration AND be a member
                  of the site<p>OR</p>
                </li>

                <li>View Setup and Configuration AND be a member of the site AND have appropriate
                  <a href="https://help.salesforce.com/s/articleView?id=experience.networks_access_control_overview.htm&amp;language=en_US" target="_blank">role-based site access</a>
                </li>

              </ul>
            </td>

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

- [Considerations](https://help.salesforce.com/s/articleView?id=experience.exp_cloud_build_seo_friendly_urls.htm&release=264.0.0&type=5)
- [Step 1: Create SEO-Friendly URLs](https://help.salesforce.com/s/articleView?id=experience.exp_cloud_build_seo_friendly_urls.htm&release=264.0.0&type=5 "For SEO-friendly URLs to function correctly, you must first create the URL slugs either from the record detail page or in bulk using Object Manager. Then you enable SEO-friendly URLs for your site. Alternatively, you can use the ObjectRelatedUrl object in the Salesforce Platform APIs that you typically use.")
- [Step 2: Enable SEO-Friendly URLs](https://help.salesforce.com/s/articleView?id=experience.exp_cloud_build_seo_friendly_urls.htm&release=264.0.0&type=5 "After you create SEO-friendly URLs, you’re ready to enable the functionality in your enhanced LWR site. The setting is site-specific, which means you must enable it on a site-by-site basis.")

## Considerations

When adding URL slugs for your site, keep these considerations in mind.

- You can't disable the SEO-friendly URLs setting after you enable it.
- URL slugs are available for custom objects, accounts, and contacts. They’re also available for product and category pages in LWR Commerce sites.
- URL slugs have a 150-character limit and allow these characters: a-z A-Z 0-9 . - \_ $ & : ; \* , = @{}. Foreign-language characters are also allowed.
- When URL slugs are enabled and configured for custom object pages, they’re used as the canonical URL in sitemaps created for enhanced LWR sites. Otherwise, the sitemap continues to use the record ID URL.
- SEO-friendly URLs don't support site object pages created with custom metadata. URLs for pages made with custom metadata always use the record ID URL.
- When using the record ID URL for the navigation menu, use either a site page URL or an external URL.
    - Site page URL format: /object/<id>. Example: /account/001SG000006px3iAPM
    - External URL format: https://testorg.my.site.com/lwrCMS/account/001SG000006px3iAPM

To use URL slugs on localized versions of your site, keep these considerations in mind.

- Enable Translation Workbench and add active languages for translation. See [Translation Workbench](https://help.salesforce.com/s/articleView?id=platform.workbench.htm&type=5&language=en_US).
- When choosing a language for a URL slug, select a language that’s active in your org and site. See [Supported Languages](https://help.salesforce.com/s/articleView?id=xcloud.faq_getstart_what_languages_does.htm&type=5&language=en_US).
- Create a URL slug in your site’s default language and translate it for each language you support. For example, if your site is configured to have both English and French URL slugs, then site.com/fr/custom-object/{slug-english} redirects to site.com/fr/custom-object/{slug-french}.
- When a customer is browsing in a language without a URL slug translation, but the page has a URL slug for your site’s default language, the slug falls back to the default language. For example, if your default site language is English and a customer is browsing in French, site.com/fr/custom-object/{slug-english} loads the page.
- When a customer lands on a record ID URL and uses the language selector to change the site's language, the site doesn’t redirect to the SEO-friendly URL format.
- When using multilingual alternate `hreflang` tags, guest sharing rules must be set up for translated URL slugs to appear to unauthenticated users.

## Step 1: Create SEO-Friendly URLs

For SEO-friendly URLs to function correctly, you must first create the URL slugs either from the record detail page or in bulk using Object Manager. Then you enable SEO-friendly URLs for your site. Alternatively, you can use the ObjectRelatedUrl object in the Salesforce Platform APIs that you typically use.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-experience-communities-264-0-0-production-enus/bf7df212-91a1-4fa3-a007-4d6f3e3b470b/images/icon_note.png)

Note No matter where you upload them, URL slugs are available only for custom objects, accounts, and contacts. They’re also available for product and category pages in LWR Commerce sites.

### Create URL Slugs from the Record Detail Page

Upload URLs to your enhanced LWR site directly from your records using the URL Slugs component. By default, the Commerce, Product, and Category record pages have the SEO tab and SEO-friendly URL slug component installed. For all other record pages, add the component manually through Lightning App Builder.

1. From Setup, in the Quick Find box, enter App Builder, and then select **Lightning App Builder**.
2. Create a Record Page and select a supported object.
3. Select **Clone Salesforce Default Page**.
4. Select the Tabs component and add a tab.
5. Select **SEO** and then click **Done**.
6. Add the URL Slugs component to your new SEO tab.
7. Save and activate your page.
    
    ![Example SEO tab on a record page](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-experience-communities-264-0-0-production-enus/bf7df212-91a1-4fa3-a007-4d6f3e3b470b/communities/images/seo_friendly_urls_tab.png)

After your component is installed, you can add URL slugs directly from a record page. From the SEO tab, click **Add URL Slug**. Select a language and then enter a URL.

### Create URL Slugs from Object Manager

To create SEO-friendly URL slugs in bulk, it’s easiest to go directly to Object Manager. From there, you can bulk import URL slugs via a CSV file. You can also search, filter by language, and edit and delete single URL slugs.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-experience-communities-264-0-0-production-enus/bf7df212-91a1-4fa3-a007-4d6f3e3b470b/images/icon_note.png)

Note Files with fewer than 25 slugs are uploaded synchronously. Files with 25 or more slugs are uploaded asynchronously, with a status email sent upon completion. The row limit is 6,000 rows per file.

1. Construct a CSV file for importing URL slugs.
    
    Each row in the file represents a URL slug and the associated language. Specify column headings that correspond to parent ID, URL slug, and language code information. The column headings are case-insensitive, and the columns can be in any order.
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
                  <colgroup>
                    <col style="width:50%">
                    <col style="width:50%">
                  </colgroup>
                  <thead class="slds-text-title_caps ">
                    <tr class="">
                      <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d15346e387">Column heading</th>
                      <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d15346e390">column value</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr class="">
                      <td data-label="Column heading" class="slds-cell-wrap" style="vertical-align:top;" headers="d15346e387 ">Parent ID</td>

                      <td data-label="column value" class="slds-cell-wrap" style="vertical-align:top;" headers="d15346e390 ">The ID of the record that the URL slug is created for.</td>

                    </tr>
                    <tr class="">
                      <td data-label="Column heading" class="slds-cell-wrap" style="vertical-align:top;" headers="d15346e387 ">Language Code</td>

                      <td data-label="column value" class="slds-cell-wrap" style="vertical-align:top;" headers="d15346e390 ">A Salesforce-supported language code. For example,
                        <code>en_US</code>.
                      </td>

                    </tr>
                    <tr class="">
                      <td data-label="Column heading" class="slds-cell-wrap" style="vertical-align:top;" headers="d15346e387 ">URL Name</td>

                      <td data-label="column value" class="slds-cell-wrap" style="vertical-align:top;" headers="d15346e390 ">
                        <p>The SEO-friendly URL slug for the record in the specified
                          language.</p>
                        <p style="margin-bottom:0;">URL slugs have a character limit of 150 and allow these
                          characters: <code>a-z A-Z 0-9 . - _ $ &amp; : ; * , = @{}</code>.
                          Foreign-language characters are also allowed.</p>
                      </td>

                    </tr>
                  </tbody>
                </table>
2. When the file is ready to upload, go to **Setup** | **Object Manager**.
3. Select the object page where you want to upload slugs.
4. Select the **URL Slugs** tab.
5. Click **Import** and upload a CSV file.
6. Map the fields in your file to fields in Salesforce.
7. Save your work.
    
    ![Url slugs listed in Object Manager](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-experience-communities-264-0-0-production-enus/bf7df212-91a1-4fa3-a007-4d6f3e3b470b/communities/images/seo_friendly_urls_object_manager.png)

## Step 2: Enable SEO-Friendly URLs

After you create SEO-friendly URLs, you’re ready to enable the functionality in your enhanced LWR site. The setting is site-specific, which means you must enable it on a site-by-site basis.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-experience-communities-264-0-0-production-enus/bf7df212-91a1-4fa3-a007-4d6f3e3b470b/images/icon_important.png)

Important You can't disable the SEO-friendly URLs setting after you enable it.

1. Open [Experience Workspaces](https://help.salesforce.com/s/articleView?id=experience.networks_workspaces.htm&type=5&language=en_US).
2. Click **Administration** | **Preferences**.
3. Select **Use SEO-friendly URLs on this site**.
4. Save your work.
5. Publish your site.

After you enable the setting, you can see and edit the base-friendly URL in the site’s **Experience Builder** | **Page Properties**.