Pular para o conteúdo
Blog

Squarespace URL Mappings not working? Turn off AJAX loading

Squarespace URL Mappings not working or showing a 404? Check the rule format, the old page and the 2-minute loop rule, then turn off Ajax loading on 7.0.

The Liite team7 min de leitura

Short answer

On a version 7.0 site that supports Ajax loading, redirect links can show a 404. Open Design > Site styles, uncheck Enable Ajax loading, and retest logged out. If it still fails, check that the old page is deleted or disabled, that the new page is live, and that the rule reads /old-url -> /new-url 301.

You added a redirect under URL mappings, but the old address still shows a 404 or the old page instead of the new one. People search for it like this:

squarespace url mappings not working

The Ajax switch is the best-known fix, and Squarespace documents it itself. On a version 7.0 site that supports Ajax loading, visitors may see a 404 page when clicking a redirect link, and the fix is to disable Ajax loading in site styles. It only applies to some sites, so work through the causes in order.

Why URL mappings fail

These are the causes Squarespace's URL mappings help page lists, most common first.

  1. The old URL is still a live page. Redirects only work if the page you're redirecting from has been deleted or disabled.
  2. Incorrect formatting. Your domain name has to be removed from the redirect, and only the URL slug is necessary. A missing arrow or redirect type gives the error "Invalid mapping: Not enough parts". Duplicated pieces give "Too many parts".
  3. The target is disabled or deleted. If a redirect leads to a disabled or deleted page, visitors will see a 404 page.
  4. You triggered it twice within two minutes. When a visitor activates a redirect more than once within two minutes, they land on a 404. It's a security precaution against redirect loops. Repeated testing in one browser can trigger this and make a correct rule look broken.
  5. Ajax loading is on (version 7.0 only). Ajax is a feature in some version 7.0 templates. Version 7.1 doesn't have it. Squarespace says Ajax may conflict with embedded custom code, code-based customizations, anchor links and URL redirects.
  6. Capitalization. URL slugs are all lowercase, and any uppercase characters you enter change to lowercase automatically. A rule or link with capitals can miss.
  7. Rule order. Redirects activate from top to bottom, so higher redirects take priority over conflicting ones below them.
  8. Things that can't be redirected. Image and file URLs can't be redirected, and you can't redirect away from /, which is reserved for the homepage.

People on Squarespace's community forum also reported the Ajax problem back in 2023. We can't tell whether Squarespace changed the behavior since. Its current help pages simply document the Ajax workaround.

A practical hint: a redirect is decided by the server, so typing the old address straight into a fresh tab should work. If it only fails when you click a link from another page on your own site, that points at in-browser page swapping (Ajax) rather than your rule.

Step-by-step fixes

1. Test the right way

  1. Open a private or incognito window and log out of Squarespace.
  2. Type the old URL straight into the address bar. Browsers cache 301 redirects, so a stale result can mislead you.
  3. Wait two minutes between tests of the same redirect (see cause 4).
  4. Then click a link to the old URL from another page on your site and compare the two results.

2. Check the mapping line

  1. Open the Developer tools panel, then click URL mappings.
  2. Find your rule. It needs the old URL, the arrow (->, a dash followed by a greater-than sign), the new URL and the type, 301 or 302.
/old-url -> /new-url 301
  1. Use only the slug for the old URL, with no domain.
  2. For an external destination, make sure the URL you're directing to begins with https://.
/fundraiser -> https://example.com/page 301
  1. Click Save.

If you moved a whole set of items, one line can cover them with the [name] variable. It tells Squarespace to substitute each product's URL.

/shop1/p/[name] -> /shop2/p/[name] 301

3. Make sure the old URL no longer exists

Delete or disable the old page, post or product, or change its URL slug. Then retest. Also open the new URL directly to confirm it's live.

4. Turn off Ajax loading (version 7.0)

  1. Open the Design panel, then click Site styles.
  2. Search for the Enable Ajax loading tweak.
  3. Uncheck Enable Ajax loading and save.
  4. Retest in a private window, clicking through from another page.

Squarespace lists exceptions in its Ajax loading article. Ajax can't be disabled in the Skye family, or on the blog landing page for the Farro family. Ajax is always disabled for logged-in contributors, so you can't reproduce the problem while logged in.

Version 7.1

A version 7.1 site has no Ajax loading, so you won't find this setting. Focus on the other causes.

5. Check what the old URL really returns

The redirect checker follows every hop and shows the status code at each one. You want a single 301 pointing at the new address. A 404 means the mapping isn't being applied. Several hops mean a chain, which redirect chains explains. The 301 redirect checker tells a 301 from a 302.

6. Check size and order

The URL mappings field is limited to 400 KB, which Squarespace says is usually around 2500 redirect lines, and it recommends deleting inactive redirects. If you pasted a long list, confirm all of it saved. Put specific rules above broader ones that could match the same path.

Cause, symptom and fix

CauseSymptomFix
Ajax loading on (7.0)404 when clicking a redirect linkUncheck Enable Ajax loading
Old page still liveOld page keeps showingDelete, disable or re-slug it
Target deleted or disabled404 after the redirectPoint to a live page
Redirect hit twice in 2 minutes404 on repeat testsWait, then test once
Capitals or typo in the rule404 on the old URLMatch the real lowercase slug
Image or file URLNever redirectsNot possible; update the links

Checklist before you try again

  • The mapping reads /old-url -> /new-url 301, with no domain.
  • The old page is deleted, disabled or re-slugged.
  • The new page exists and is enabled.
  • No conflicting rule sits above it.
  • You tested logged out, in a private window, one test per two minutes.
  • On version 7.0, Enable Ajax loading is unchecked and saved.

Don't redirect to a dead end

A redirect to a deleted or disabled page ends in a 404, so check the destination before blaming the rule.

If nothing works

Contact Squarespace support through its help center. Include the exact mapping line, the old and new URLs, whether the site is version 7.0 or 7.1, the template family, what the redirect checker shows, and what you've tried.

Hello, my URL mapping isn't redirecting.

Mapping: /old-url -> /new-url 301
Old URL: https://yourdomain.com/old-url
Site version and template: 7.0, [template name]
Result: the old URL shows a 404 (redirect checker output attached)
Already tried: old page deleted, tested logged out in a private window, Enable Ajax loading unchecked and saved.

Can you check why the mapping isn't being applied?

Liite and redirects

Liite doesn't replace Squarespace's 301 mappings for pages on your own domain. For links you share elsewhere, a Liite short link can point to any destination, and you can change that destination later. It redirects with a plain 302, not a 301.

Common questions

Does Ajax loading break every redirect?

No. Squarespace says it may conflict with redirects, and the documented symptom is a 404 when clicking a redirect link. Typing the old URL directly into a new tab often works.

Should I use a 301 or a 302?

Use a 301 for permanent changes and a 302 for temporary ones. For a page that moved for good, choose 301.

I changed a slug and my printed QR codes broke. What now?

QR codes are static, so they break when you change the slug. You can revert the slug, create URL redirects, or update the QR code and replace printed materials. Squarespace covers this in its troubleshooting link issues article.