Create CDN Redirections
Publisher: Psychz Networks, December 11,2018Create REDIRECTS under CDN services
The following steps will allow you to create different types of "Redirects" that will transfer your traffic to a desired domain location.
You can configure Redirect by following the below location under your client area
Tools -> CDN -> Manage Domains -> yourdomain.com -> Action (Manage) -> Traffic Manager -> Redirects
Under 'Redirects
' page you will see the list of domain/domains that you have configured. Click on "Edit
" icon under 'Action
' which will take you to the page where you can choose Redirect type for your domain.
You can choose the redirection method from the multiple choices. Let us understand each of these redirection options with example
STANDARD
Using 'Standard
' redirection method, you can redirect from one domain including the exact location to another domain and location that you specify.
You can do so by entering the details in the following fields
Step 1
Selecting 'Redirect Type
'
As per your redirect request type, you must choose one of the 4 options. Each of the options signifies a purpose that is mentioned below
PERMANENT - 301
This status code signifies that the target source has been assigned a new permanent URI (Uniform Resource Identifier) and any future references to this resource ought to use one of the enclosed URIs.
TEMPORARY - 302
The target resource resides temporarily under a different URI (Uniform Resource Identifier).
TEMPORARY - 307
The target resource resides temporarily under a different URI and the user agent MUST NOT change the request method if it performs an automatic redirection to that URI (Uniform Resource Identifier).
PERMANENT - 308
The target resource has been assigned a new permanent URI (Uniform Resource Identifier) and any future references to this resource ought to use one of the enclosed URIs.
To know more about the type of HTTP status codes please visit https://httpstatuses.com/
Step 2
Selecting 'From Domain'
Here, when you click on the drop down menu, you will find the list of domains that you have entered under you CDN subscription. You can choose the domain that you want redirect to perform.
For Eg. Let's select www.yourdomain.com
Step 3
Selecting 'Redirect from Location'
This field might be empty if you are adding a redirect for the first time. Click on the '+' sign on the right hand side of the drop down menu bar.
Once you click on the '+' button, a new pop up window opens which carries multiple fields. Follow the following steps to add 'Redirect Location'
Step 3.1. Select the domain from the drop down menu. This domain should match with your 'From Domain' which you previously selected.
Step 3.2. Choose the proxy protocol from HTTP or HTTPS
Step 3.3. The system will auto populate this field by extracting the proxy IP from the domain that you have specified in the above field. In most of the cases, this IP matches with the actual one. However, if you find it differing from the actual, you can manually enter the IP.
Step 3.4. Here you need to enter the Root Location. By adding this path we will specify the exact location of the page that you would like to redirect to a destination page.
Click on 'Add' button to add the Domain location.
Step 4
Adding 'Redirect to Domain'
Here in this field, you need to specify the destination location URL where you would like to redirect your site to.
For example. www.destinationsite.com
Step 5
Adding 'Redirect to Location'
Redirect to Location specifies the exact location of the URL under the main site that you have chosen under the domain.
For example. /this/is/a/demo/path
The whole redirected destination URL will be www.destinationsite.com/this/is/a/demo/path
Step 6
Once you enter details in all the fields, click on add to activate the 'Redirection'. This process takes a few minutes to activate.
In the above scenario, the site www.yourdomain.com/this/is/demo/path
will be redirected to www.destinationsite.com/this/is/a/demo/path
GLOBAL WILDCARD
If you choose 'Global Wildcard
', the From and To locations will be disabled. This functionality will take all the paths of the source
e.g. www.yourdomain.com
and redirect to the matching path on the specified destination
e.g. www.destinationsite.com
SOURCE WILDCARD
If you choose 'Source Wildcard
', the 'From Location' option is unavailable. However, "To Location" is available.
For example: you can redirect
www.yourdomain.com
to www.destinationsite.com/this/is/a/demo/path