Adding vanity redirect URLs
This topic explains how to add vanity redirect URLs for your assets. For information about when this type of redirect is useful, see Types of redirects.
To add vanity redirect URLs:
- Click > Admin > Vanity URL Redirects.
- From the Create widget, click New Vanity URL Redirect.
- In the Name field, enter a description of this redirect. If no name is entered, this field defaults to the local URL and the destination URL, separated by a
->
. - In the Local Urls field, enter the path after the domain name in the URL from which you are redirecting. For example, if the source URL is
http://brightspot.com/video-integrations
, enter/video-integrations
. Click to add multiple paths. - In the Destination field, enter the redirect's target URL.
- Toggle on Temporary if you want the browser or search engine to treat the redirect as temporary. If set, the server returns an HTTP 302 temporary redirect; otherwise, it sends a 301 permanent redirect. (For an explanation of the difference between permanent and temporary redirects, see Asset URLs.)
- In the Query String field, select one of the following:
preserve
—When redirecting, append an incoming query string to the URL in the Destination field.ignore
—When redirecting, do not append an incoming query string to the URL in the Destination field.modify
—Modify the incoming query string.
- Complete your site's workflow and publish the asset.
The following illustrations comprise an example of a vanity redirect.
Referring to the previous images, and assuming the current site is at brightspot.com
, —
- Visitors attempting to view the asset at
http://brightspot.com/video-integrations
are redirected tohttps://brightspot.com
. - Similarly, visitors attempting to view the asset at
http://brightspot.com/audio-integrations
are redirected tohttps://brightspot.com
. - Visitors attempting to view the asset at
http://brightspot.com/media-pricing?product-id=25
are sending a query string with the request. Because this vanity redirect modifies query strings, those visitors are redirected tohttps://brightspot.com?new-product-id=125
.