CMS: Creating Unique Dynamic Page URLs

6 min read
Ensure each item from your collection gets a unique web address by adding variables to the URL slug structure. The variables you add to your URLs get replaced by the actual field values from your collection items. Creating unique URLs also helps search engines and visitors understand what each page's content is about. 
A screenshot of the URL slug structure in the SEO tab of page settings.

Why should I add variables to dynamic page URLs?

You may need to add fields to dynamic page URLs to create unique URLs for each item in your collection. If multiple items in your collection have the same value in their primary field (e.g. "Title" or "Name"), and you do not add a variable to the dynamic URL, only 1 URL is generated. This is because the primary field is used in the URL by default. Since only 1 URL is created for both items, only 1 item will have a dynamic page, the other will not. 

To solve this issue, add variable fields to the URL so each item gets its own dynamic page with a unique URL. 
If your dynamic item page URL ends with /team/{Title}, and 2 items in the collection have "Sara" in the primary Title field, only 1 URL is generated for /team/sara. So only 1 dynamic page is created for 1 of the 2 items in the collection. 

To solve this, you could add a field to the URL that is unique to each item. For example, add a "Phone" field if each item has a different value in a "Phone" field. The URL would then be /team/sara/{Phone} so each item gets its own unique dynamic page URL.

Adding variables to dynamic page URL slug structures

Go to the SEO tab of your dynamic page settings in your Editor to check your URL slug structure. You can then manually edit the structure and add variable fields that change based on each collection item's actual field value. 
If you change the URL structure of your dynamic pages, all the existing links to these pages will no longer work. This affects links within your site, any links you've shared externally, and SEO links in search engines. 
Wix Editor
Editor X
Studio Editor
  1. Click Pages and Menu  on the left side of your Editor.
  2. Click Dynamic Pages
  3. Hover over the relevant dynamic page and click the More Actions icon  on the right. 
  4. Click SEO
  5. Click the URL slug structure field.
  6. (Optional) Enter text or number values to modify the URL slug structure. You can enter characters in the URL prefix that appears after https://www.../ and on either side of a variable. 
  7. Click Add Variable and select the field from your collection that you want to use in the URL.
    Note: You can only use Text and Number fields from your collection as variables. 


Click a question below to learn more about creating unique dynamic page URLs.