Note: While our most popular guides have been translated into Spanish, some guides are only available in English.
URL slugs

A URL slug is the exact address of a specific page or collection item on your site.

Squarespace automatically assigns a URL slug for each new page or collection item based on its page title. For example, if you add a page titled "About," its automatic URL slug is /about and its full URL is https://yourdomain.com/about.

Use this guide to learn how to find and change URL slugs on your site.

Find a page's URL slug

You'll need a page slug when setting up links to specific collection items, anchor links, RSS feeds, and URL redirects. If you're logged in, the logged in URL doesn't include the page slug. Use these options to see a page's slug while logged in:

  • Full preview - Click the expand arrow in the top-left corner to open full preview. The page slug appears after your built-in domain name in the address bar.
  • Private browsing or incognito mode - Visit your site and navigate to the page or item in a private or incognito browser. The page slug appears after your domain name in the address bar.
  • Page or item settings - Follow the steps in the sections below to find and edit the URL slug for pages, Index Pages, blog posts, events, gallery images, and products.

URL slug formatting tips

Using short, memorable URLs makes it easier for visitors to find and share your content.

When editing URL slugs, keep the following formatting requirements in mind:

Capitalization

  • URL slugs are all lowercase.
  • Any uppercase characters you enter when editing the URL will automatically change to lowercase.
  • If you or visitors enter any uppercase letters when trying to visit a page, your site's 404 error will display instead. To prevent this from happening, you can create 301 URL redirects, which sends visitors from an incorrect, capitalized URL to the uncapitalized version your site uses.

Character limits

  • URL slugs must be between 3 and 250 characters.
  • URL slugs can't include special characters other than dashes (-).
  • If you save a blog post or event before adding a title, the URL slug will be a random string of characters.

Reusing old URLs

URL slugs for live pages and posts can't match URL slugs for content in the trash can. To reuse a deleted page or post's URL slug, empty the trash can, or restore the deleted page or post, change its URL, then delete it again so you can reuse the URL.

Reserved URL slugs

Squarespace reserves some URL slugs for internal parts of your site, meaning you'll see an error message if you try to use them for a page's URL. Reserved slugs include:

  • account
  • api
  • assets
  • auth
  • campaigns
  • cart
  • checkout
  • commerce
  • config
  • debug
  • facebook
  • files
  • item
  • script
  • scripts
  • search
  • sharer
  • static
  • storage
  • universal

Avoid broken links after making any changes

If you change a page's URL slug, traffic won't automatically redirect to the new URL. If a visitor clicks or navigates to the old URL, they'll see the 404 error.

There are a few ways to prevent broken links after changing a URL slug:

  • Create a 301 redirect from the old URL to the new one.
  • Edit any links directing to the page. If you linked to the page using Page links, update those links too.

Change a page URL

Page URLs are automatically set based on a page's title. To edit this URL, follow these steps:

  1. In the Home Menu, click Pages.
  2. Hover over the page and click  to open page settings.
  3. Update the URL in the URL Slug box.
  4. Click Save.
Note: When you're logged in, collection pages display a string of numbers and letters in the browser address bar. This unique ID can't be changed, but it won't appear to visitors.

 

  1. Tap Pages, then tap the page you want to edit. 
  2. Tap ... or the-gear-icon in the top-right corner.
  3. Tap the URL Slug field and update the URL.
  4. Tap Save.

Change an Index URL

An Index displays the content from multiple subpages in one location. To change the URL for the Index landing page, ensure you edit the main Index:

  1. In the Home Menu, click Pages.
  2. Hover over the Index Page title and click  to open page settings.
  3. Update the URL in the URL Slug box.
  4. Click Save.

open-index-page-settings.png

  1. Tap Pages, then tap the Index Page you want to edit.
  2. Tap ... or the-gear-icon in the top-right corner.
  3. Tap the URL Slug field and update the URL slug.
  4. Tap Save
Tip: Each subpage has its own URL, called the direct URL. To change any of these, edit the subpage directly.

Change a blog post URL

Blog post URLs always begin with the Blog Page's URL slug. The rest of the slug is set by the post's title and the default Post URL Format in the Blogging panel.

To edit a blog post URL's slug:

  1. In the Home Menu, click Pages.
  2. Click a Blog Page.
  3. Hover over the post you want to change and click Edit.
  4. Click the Options tab.
  5. Enter a new URL slug in the Post URL box. Only the specific blog post's URL slug can be edited here. To change the Blog Page's slug, follow the steps above to change a page URL.
  6. Click Save.
  1. Tap Pages, then tap the Blog Page.
  2. Tap the blog post you want to change.
  3. Tap ... or the-gear-icon in the top-right corner.
  4. Under Options, tap Post URL and enter a new URL slug in the URL field. Only the specific blog post's URL slug can be edited here. To change the Blog Page's slug, follow the steps above to change a page URL.
  5. Tap Post Settings, then tap Save

Set a default blog post URL format

To keep blog post URLs consistent, all post URLs publish in the same format. You can edit this format to include any combination of the post's title, creation year, month, date, and custom text.

To set the default blog post URL format:

  1. In the Home Menu, click Settings, then click Blogging.
  2. Edit the Post URL Format using the variables below and any custom text.
  3. To remove a variable from the URL format (for example, %y, for year), click into the Post URL Format box and delete the variable.
  1. Tap Settings, then tap Blogging.
  2. Tap Post URL Format, then enter a new default using the variables below and any custom text.
  3. To remove a variable from the URL format (for example, %y, for year), click into the Post URL Format box and delete the variable.

Variables:

  • %t - The post title
  • %m - The creation month for the blog post
  • %d - The creation date (day of the month) for the blog post
  • %y - The creation year for the blog post
Note: If you added custom text, spaces between characters will appear as %20. To avoid this formatting, replace spaces with dashes (-).

Change an event URL (computer only)

URLs for individual events are set by the Events Page URL slug followed by the event date and title. To edit an event's URL slug:

  1. In the Home Menu, click Pages.
  2. Click an Events Page.
  3. Hover over the event you want to change and click Edit.
  4. Click the Options tab.
  5. Enter a new URL slug in the Event URL box. Only the specific event's URL slug can be edited here. To change the Events Page's slug, follow the steps above to change a page URL.
  6. Click Save.

Change a gallery image URL

Deeplink URLs, also called Post URLs or Image URLs, are unique URLs automatically assigned to images in many templates' Gallery Pages. These URLs take visitors directly to an image within a Gallery Page.

You can replace the automatically-generated slug for any image in a Gallery Page:

  1. In the Home Menu, click Pages.
  2. Click a Gallery Page.
  3. Hover over an image in the Gallery panel and click .
  4. Click the Options tab.
  5. The assigned deeplink URL is in the Image URL box. Edit this to change the slug.
  6. Click Save.
  1. Tap Pages, then tap the Gallery Page.
  2. Tap the image you want to edit.
  3. Under Options, tap Image URL, then enter a new URL slug.
  4. Tap Back, then tap Save.

Change a product URL (computer only)

Product URLs are set by the Products Page's URL followed by the product title. To edit a product's URL slug:

  1. In the Home Menu, click Pages.
  2. Click a Products Page.
  3. Double click the product you want to change to open the product editor.
  4. Click the Options tab.
  5. Enter a new URL slug in the Product URL box. Only the specific product's URL slug can be edited here. To change the Product Page's slug, follow the steps above to change a page URL.
  6. Click Save.
Was this article helpful?
51 out of 169 found this helpful