Because Index Pages are collections of pages, search engines and social media sites interact with them differently than other pages in Squarespace.
Index Pages and and their sub-pages' appearance in search results may vary, but there are some things you can do to influence what appears.
Optimize your Index for search engines
To help search engines see your Index Page and understand what it's about:
- Optimize your headings for search.
- Follow our general SEO best practices and include relevant keywords throughout the Index Page.
- Add an SEO description and Alternate Social Sharing Image to the main Index Page's Page Settings.
- Making an Index your homepage may help search engines prioritize it above other pages on your site.
Optimize Index sub-pages for search engines
Both the Index and the direct link for its sub-pages may appear in search results depending on their content.
To hide sub-pages from search engines, you can add noindex tags to them. For example, you may want to hide sub-pages from search results to avoid these visitor experiences:
- Stacked Indexes - When a visitor opens a link for a sub-page from search results, it takes them to a URL only for that sub-page instead of the full Index landing page.
- Sub-pages with special formatting - Some templates' sub-pages include URL hashtags and special formatting. Search engines don't index these hashtag URLs, so visitors opening the pages from search results won't see the special formatting.
When sharing Index Pages on social media, you can:
- Share the Index Page itself
- Share a hotlink to a part of an Index Page
- Share the standalone page (direct URL) for an Index's sub-page
For any of these options, use the URL that appears when you're logged out or in incognito mode. The URL that displays when you're logged in, which includes /config, doesn't work for sharing. To learn more, visit Sharing URLs from your site.
Share the whole Index
To share the whole Index Page, use the URL for the Index Page.
- If your Index is your homepage, use the main URL for your site with no slugs at the end.
- If your Index isn't your homepage, ensure the slug for your Index Page is at the end, with no additional page slugs.
Share a page or section within an Index
The best way to link directly to a sub-page in each template's Index depends on your Index type.
- Grid and slideshow - Open your site in Incognito mode, and click through to the page you want to share. Copy that URL from the browser and share it. The page will open with the Index formatting.
- Stacked - Set up an Index anchor link, and share that URL. The page will open scrolled to the section you linked to.
Note: In some cases, the preview that displays on social media will show the full Index, not the sub-page. To preview the sub-page, use the direct URL.
Direct URLs take visitors to specific pages on your site. To share a page within the Index as a standalone page, use the direct URL by removing everything except your domain name followed by the page's URL slug, like this: https://yoursite.com/page-slug.
- If the URL includes a #, remove the # from the URL before you share it.
- If your Index Page isn't set as your homepage, you'll also need to remove the Index Page slug from the URL.
For example, if your page URL looks like this in the Index:
Use this version for sharing:
Note: This direct URL version of your page may display differently than the version within the Index. For example, in the Avenue template, Gallery Pages stack vertically when opened from an Index. At the direct URL, they'll display as a slideshow. To learn more about your template's Index Page, visit Using the Index Page.