---
schema_version: "1"
id: 234b21a6a49e05ae40aa796c3c82865ace1e03c1f2299c7753e21753f47c195e
title: Salesforce Sites URL Redirects
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/sites_redirects.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.sites_redirects.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: dc42784f9ce087501da2c6a5585785f8d679fac7206e1f6b908947f813cda29c
description: If you move or reorganize pages on your Salesforce Site, search engines can have trouble finding the new page locations. To avoid this issue, set up site URL redirects to inform users and search engines that site content has moved.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Salesforce Sites URL Redirects

If you move or reorganize pages on your Salesforce Site, search engines can have trouble finding the new page locations. To avoid this issue, set up site URL redirects to inform users and search engines that site content has moved.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Developer</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d21118e72">User
              Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d21118e72 ">To create and edit site URL redirects:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d21118e72 ">Customize Application</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d21118e72 ">To view site URL redirects:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d21118e72 ">View Setup and Configuration</td>

          </tr>
        </tbody>
      </table>

Consider the following while implementing site URL redirects:

- You can't redirect error pages or CSS files (files with a .css extension).
- You can have a maximum of 6,000 redirect rules across all sites.
- Query parameters in site URL redirects are matched exactly. However, you can't redirect any URLs that include the `lastMod` parameter.
- If you have URL rewriting enabled on your site, it runs after any site page redirects.
- To redirect an Experience Cloud site home page to its companion Site.com home page set the Source URL to /. That path represents the home page for the Experience Cloud site. Then set the Target URL to s, which represents the home page for the Site.com site.

To assign a redirect to a site page:

1. From Setup, in the Quick Find box, enter Sites, and then select **Sites**.
2. Click a site label.
3. On the site detail page, click **URL Redirects**.
4. For Source URL, specify the former page location.
    
    The source URL must be a relative URL, and it
    
    - It must be a relative URL.
    
    - It can’t contain anchors, such as #target in /siteprefix/page.html#target.
    
    - It can have any valid extension type, such as .html or .php.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)
    
    Note If you use sites with prefixes, manually add the prefix to the Source URL and Target URL fields. Also, if you have a root-level site and one with a prefix, and you want to redirect a page in your prefixed site, include the prefix in the redirect rule. Otherwise, Salesforce looks for the rule in your root site, resulting in a 404 error.
5. Specify the Redirect Type.
    - Permanent (301)—Select this option when you want users and search engines to update the URL in their systems when visiting the page. Users visiting a page with this redirect type are sent to the new page. With this option, that your URLs retain their search engine popularity ratings. It also instructs search engines to index the new page and to remove the obsolete source URL from their indexes.
    - Temporary (302)—Select this option when you want users and search engines to keep using the original URL for the page. Search engines interpret a 302 redirect as one that could change again at any time. Although search engines index and serve the content on the new target page, they also keep the source URL in their indexes.
6. In the Target URL field, specify the new page location.
    
    The target URL can be a relative URL or a fully qualified URL with an https:// prefix. Unlike source URLs, target URLs can contain anchors.
7. Save your changes.

The Redirect Rules section displays all URL redirect rules you've created for your site. In this section you can:

- Edit an assigned redirect rule.
- Activate or deactivate a redirect rule.
- Delete a redirect rule.
- Sort the list in ascending or descending order by clicking the corresponding column heading.

#### See Also

- [Salesforce Sites](https://help.salesforce.com/s/articleView?id=platform.sites_overview.htm&release=264.0.0&type=5 "Salesforce Sites enables you to create public websites and applications that are directly integrated with your Salesforce organization—without requiring users to log in with a username and password. You can publicly expose any information stored in your organization through a branded URL of your choice. And you can make the site's pages match the look and feel of your company’s brand.")