This article will show you how to create a new Redirect. Redirects take you from one page to another automatically.
Best Practices
It is best practice to have the settings as follows:
- Do Not Retain URL
- HTTP 301
- Do Not Retain Query String
- Do Not Retain Path
- Select Match Query String
Article Navigation
Create a Redirect
- Sign in to your site
- Navigate to Modules, click Site Tools, and select Redirects
- Select desired domain
- All Sites: Will apply the redirect to all your domains; this is the recommended option
- By selecting a specific domain, the redirect will only be active on that domainNote: If you choose this route you will need to add the redirect to both the www and non-www domains (for example: www.civicplus.com and civicplus.com).
- Select Add Redirect on the right
- Fill in the appropriate information
-
Link From: Relative URL that will be entered in the browser's address bar or used as a link
-
For Example: /Parade, /AnimalShelter, /PollingLocationsNote: This must be a Relative URL. The Relative URL will begin with a forward slash (/). Absolute URLs will not be accepted in this field. Some Relative URLs are reserved by your site and are not available for use. Example: /DocumentCenter, /Facilities, /Permits. For security reasons, the following extensions have been restricted from use in the Redirects module: .AXD and .JS.
-
For Example: /Parade, /AnimalShelter, /PollingLocations
-
Link To: URL which the browser will load when the Redirect URL is entered or clicked; can either be an Absolute or Relative URL
-
For Example: /78/2017-Annual-Parade, https://www.yoursite.gov/56/Animal-Shelter, /DocumentCenter/View/415/Polling-Location-Map(PDF)Note: Always SSL may cause a Redirect to default to the homepage if the URL in the Link To field is not secure.
-
For Example: /78/2017-Annual-Parade, https://www.yoursite.gov/56/Animal-Shelter, /DocumentCenter/View/415/Polling-Location-Map(PDF)
-
Retain URL: Controls whether the Link From or the Link To URL displays in the browser's address bar
When enabled, if a user leaves the Redirect page to visit other pages on the site, the browser will continue to display the Link From URL in the address bar. When enabled, the Redirect Code is set to 200, which indicates a success. -
Redirect Status: Select if this redirect is Moved Permanently or Found
- A 301 status code means that a page has permanently moved to a new location.
- A 302 status code means that a page has temporarily moved to a new location. This option can be used in conjunction with the Display date range option.
-
Retain Query String: Controls whether query string parameters from the From URL are appended to the To URL
- A query string is part of a URL containing data that does not fit conveniently into a hierarchical path structure; it commonly includes fields added to a base URL by a Web browser or other client application.
-
Retain Path: Controls whether the path from the From URL is appended to the To URL
Note: This option is used when one domain is to be replaced by another.
- Example: A site is using both the yoursite.org and yoursite.gov domains. Users can use links with either domain, but pages can be set to display www.yoursite.gov regardless of which domain was entered. A user visiting yoursite.org/78/2017-Annual-Parade will see www.yoursite.gov/78/2017-Annual-Parade in the address bar
-
Match Query String: Controls if the Redirect will require that the query string in the link clicked by the user matches the query string in the Link To URLNote: If this is enabled and the Link To URL does not contain a query string, this Redirect will not work if the URL used by an end-user contains a query string.
- Display: Used to set a specific date range for which a Redirect will be active
-
Link From: Relative URL that will be entered in the browser's address bar or used as a link
- Select a saving option at the top of the page
- Save Changes: Save but do not publish/make active
- Save and Make Active: Save and make active/publish
- Cancel: Cancel changes
Modify a Redirect
- Sign in to your site
- Navigate to Modules, click Site Tools, and select Redirects
- Select desired domain
- All Sites: Will apply the redirect to all your domains; this is the recommended option
- By selecting a specific domain, the redirect will only be active on that domainNote: If you choose this route you will need to add the redirect to both the www and non-www domains (for example: www.civicplus.com and civicplus.com).
- Select the redirect you would like to modify
- Modify the redirect
-
Link From: Relative URL that will be entered in the browser's address bar or used as a link
-
For Example: /Parade, /AnimalShelter, /PollingLocationsNote: This must be a Relative URL. The Relative URL will begin with a forward slash (/). Absolute URLs will not be accepted in this field. Some Relative URLs are reserved by your site and are not available for use. Example: /DocumentCenter, /Facilities, /Permits. For security reasons, the following extensions have been restricted from use in the Redirects module: .AXD and .JS.
-
For Example: /Parade, /AnimalShelter, /PollingLocations
-
Link To: URL which the browser will load when the Redirect URL is entered or clicked; can either be an Absolute or Relative URL
-
For Example: /78/2017-Annual-Parade, https://www.yoursite.gov/56/Animal-Shelter, /DocumentCenter/View/415/Polling-Location-Map(PDF)Note: Always SSL may cause a Redirect to default to the homepage if the URL in the Link To field is not secure.
-
For Example: /78/2017-Annual-Parade, https://www.yoursite.gov/56/Animal-Shelter, /DocumentCenter/View/415/Polling-Location-Map(PDF)
-
Retain URL: Controls whether the Link From or the Link To URL displays in the browser's address bar
When enabled, if a user leaves the Redirect page to visit other pages on the site, the browser will continue to display the Link From URL in the address bar. When enabled, the Redirect Code is set to 200, which indicates a success. -
Redirect Status: Select if this redirect is Moved Permanently or Found
- A 301 status code means that a page has permanently moved to a new location.
- A 302 status code means that a page has temporarily moved to a new location. This option can be used in conjunction with the Display date range option.
-
Retain Query String: Controls whether query string parameters from the From URL are appended to the To URL
- A query string is part of a URL containing data that does not fit conveniently into a hierarchical path structure; it commonly includes fields added to a base URL by a Web browser or other client application.
-
Retain Path: Controls whether the path from the From URL is appended to the To URL
Note: This option is used when one domain is to be replaced by another.
- Example: A site is using both the yoursite.org and yoursite.gov domains. Users can use links with either domain, but pages can be set to display www.yoursite.gov regardless of which domain was entered. A user visiting yoursite.org/78/2017-Annual-Parade will see www.yoursite.gov/78/2017-Annual-Parade in the address bar
-
Match Query String: Controls if the Redirect will require that the query string in the link clicked by the user matches the query string in the Link To URLNote: If this is enabled and the Link To URL does not contain a query string, this Redirect will not work if the URL used by an end-user contains a query string.
- Display: Used to set a specific date range for which a Redirect will be active
-
Link From: Relative URL that will be entered in the browser's address bar or used as a link
- Select Save Changes
Delete a Redirect
Important Note
- Before you can delete a redirect, you must first deactivate it.
- Sign in to your site
- Navigate to Modules, click Site Tools, and select Redirects
- Select desired domainNote: All Sites will apply the Redirect to all your domains. This is the most recommended option. If you choose an individual domain, you will need to add the redirect to the www and non-www domains such as www.civicplus.com and civicplus.com.
- Select Actions next to the desired Draft Redirect
- Select Actions and select Delete
- Select OK when asked Are you sure you want to delete this redirect?
Feedback About the Article
Let us know what was helpful or not helpful about the article below.0 comments
Please sign in to leave a comment.