The Web Redirect (WR) record (also known as URL redirect or HTTP forwarding) allows you to redirect the requests for http://yourdomain.com to http://anotherdomain.com.
The WR record has the following look in your ClouDNS Control Panel:
| Host: | Type: | Points to: | TTL |
| yourdomain.com | WR | http://anotherdomain.com | 1 Hour |
How to add it?
Go to your Control Panel and click on “Add new record”. Type, as follow:
Type: Web Redirect
TTL: 1 Hour
Host:
Points to: http://anotherdomain.com
This type of redirect is a constant type of unmasked redirect. It is used if your website is permanently moved to a new address and you want it to be indexed by search engines and routed to the new URL. It is considered to be the most efficient and search engine-friendly method for webpage redirection.
This is a temporary type of unmasked redirect. It is used if a certain URL has been changed to a different address temporarily. Search engines will index the original URL and not the destination URL and display the original URL in search results.
Redirect with frame (also known as URL masking or URL cloaking) is similar to Web Redirect, except that instead of redirecting the client to your web page, the web page is displayed in a frame from the server. With this type of redirection, the visitor's browser will display your domain name (for example, www.yourdomain.com) and the pointed web site.
Note: Redirect with frame is available only for Premium, DDoS Protected and GeoDNS subscriptions.
You can choose to redirect and/or to save the request path for example - if your user request yourdomain.com/path, "/path" will be saved on redirect). For example if you use Web Redirect record with "Save path" option checked the result will be - when you open yourdomain.com with a certain path behind it (yourdomain.com/path1/path2/) you will be redirected to your target with the same path (anotherdomain.com/path1/path2/).
You can use these variables for your record:
{*host*} = The current host (ex. www.yourdomain.com)
{*domain*} = The current domain (yourdomain.com)
{*subdomain*} = The value of the field Host (ex. your-name)
Example 1:
Host: www
Points to: http://{*domain*}/?ref={*host*}
What will happen?
When a user goes to http://www.yourdomain.com he will be redirected to http://yourdomain.com/?ref=www.yourdomain.com
Example 2:
Host: ref-id-123
Points to: http://some-referal-site.net/?ref={*host*}
What will happen?
When a user goes to http://ref-id-123.yourdomain.com he will be redirected to http://some-referal-site.net/?ref=ref-id-123.yourdomain.com
Example 3:
Host: your-name
Points to: http://some-referal-site.net/?ref={*subdomain*}
What will happen?
When a user goes to http://your-name.yourdomain.com he will be redirected to http://some-referal-site.net/?ref=your-name
NOTE: You can't have A, AAAA, CNAME or ALIAS records and WR record at the same time for the same host.