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

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

Squarespace automatically assigns a URL slug for each new page, post, or collection item based on its title. For example, if you add a page titled "About," its automatic URL slug is http://www.yourdomain.com/about. You can manually change it by following this guide.

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

Before you begin

  • URL slugs must be between 3 and 250 characters.
  • URL slugs can't include special characters other than dashes (-).
  • URL slugs are all lowercase. Any uppercase characters you enter will automatically change to lowercase, and visitors who enter an uppercase letter will see a 404 error. You can prevent the 404 error by creating a 301 URL redirect, which sends visitors from an incorrect, capitalized URL to the uncapitalized version your site uses.
  • URL slugs for live pages/posts can't match URL slugs for content in the trash can. To reuse a deleted page/post's URL slug, restore the deleted page/post, change its URL, and then delete it again so you can reuse the URL.
  • You can also reuse a URL of a deleted page or post by emptying the trash can instead of restoring and deleting again.
  • Traffic won't automatically redirect to a new URL if you change it. Navigating to the old URL will display a 404 error. To prevent this, create a 301 redirect after changing a URL slug.
  • If you've linked to this page using a Content link, you'll need to update this as well.
  • If you save a blog post or event before adding a title, the URL slug will be a random string of characters.

Reserved URL slugs

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

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

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 title.
  3. Click the next to the title to open Page Settings.
  4. Scroll down in the Basic tab to the URL Slug box.
  5. Enter a new URL.
  6. Click Save.

page-slug.png

Change a blog post URL

Blog post URLs are set by the post's title and the default Post URL Format in Blogging Settings. Edit a blog post URL's slug by following these steps:

  1. In the Home Menu, click Pages.
  2. Open a Blog Page.
  3. Hover over the post.
  4. Click Settings.
  5. Click the Options tab in the post editor.
  6. Enter a new URL slug. Only the specific blog post's URL slug can be edited here. You can change the Blog Page's slug by following the steps above to change a page URL.

change-url-slug.png

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/or custom text.

  1. In the Home Menu, click Settings, and then click Blogging.
  2. Edit the Post URL Format using the variables below and any custom text.
  3. To delete a variable from a blog post (for example, YEAR), place your cursor to the right of the variable and press the Delete key.

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 ("-").

posturlformat.jpg

Change an event URL

Event URLs are set by the Events Page URL followed by the event date and title. Edit an event URL by following these steps:

  1. In the Home Menu click Pages.
  2. Open an Events Page.
  3. Click an event.
  4. Click Edit.
  5. Click the Options tab in the event editor.
  6. Enter a new URL slug. Only the specific event's URL slug can be edited here. You can change the Events Page's slug by following the steps above to change a page URL.
  7. Click Save.

event-url.png

Change a gallery image URL

Deeplink URLs, also called Post URLs, are unique URLs automatically assigned to images in many Squarespace template Gallery Pages. These URLs take visitors directly to any image within a Gallery Page.

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

  1. Hover over an image in the Gallery panel and click the to open the Image Editor.
  2. Click the Options tab.
  3. The assigned deeplink URL is in the Post URL box. Adjust this to change the slug.
  4. Click Save.

For a list of templates that support this, visit Using deeplink URLs.

edit-image.png

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.
  3. Click the next to the title.
  4. Scroll down in Page Settings to the URL Slug box.
  5. Enter a new URL.
  6. Click Save.
Tip: Each subpage has its own URL, called the direct URL. To change any of these, edit the subpage directly.

index-slug.png 

Change a product URL

Product URLs are set by the Product Page's URL followed by the product title. Edit a product's URL slug by following these steps:

  1. In the Home Menu, click Pages.
  2. Open a Product Page.
  3. Double click a product.
  4. Click the Options tab in the product editor.
  5. Enter a new URL slug. Only the specific product's URL slug can be edited here. You can change the Product Page's slug by following the steps above to change a page URL.

Product_URL.png

Was this article helpful?
37 out of 135 found this helpful