What is a Web Redirect Record? Easy URL Redirection

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. It is a common technique for making a web page available under more than one URL address.

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

Why do you need a Web redirect record?

WR records are valuable if you need to redirect traffic from an old URL to a new URL or if you want to send visitors to a different page or website. This can be valuable if you've changed your website structure, rebranded your business, or moved your website to a new domain.

Web Redirects are used for various reasons:

  • To allow multiple domain names belonging to the same owner to refer to a single web site
  • To prevent broken links when web pages are moved
  • To forward your customers to another domain of yours if your site is temporarily or permanently not reachable
  • For URL shortening

How to create a Web redirect record?

Go to your DNS zone management page and click on Add new record. For Type choose Web Redirect and type as follows:

Types of Web Redirects

There are two different types of web redirects - 301 Redirect (permanent redirect) and 302 Redirect (temporary redirect). Each one of these types has its own specific purpose and uses.

301 Redirect

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.

302 Redirect

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

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.

Save path

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/).

Variables

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)
{*wildcard*} = The value of the field Host to (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

Example 4:

Host: *
Points to: http://{*wildcard*}.some-referal-site.net
What will happen?
When a user goes to http://your-name.master-zone-test-202206011252.com he will be redirected to http://your-name.some-referal-site.net

How to add a Web redirect record - Step by Step video:

How to start managing Web redirect records?

  1. Choose one of our Premium DNS, DDoS Protectd DNS or GeoDNS plans
  2. Verify your e-mail address
  3. Log into your control panel
  4. Create new Master DNS from the [add new] button - read more here
  5. Add the Web Redirect records you need as it is described in this article

Support of Web redirect records

ClouDNS provides full support for Web Redirect records for all our DNS services, including the listed below. Just write to our technical support, if you need any assistance with your Web Redirect records configuration. Our Technical Support team is online for you 24/7 via live chat and tickets.

FAQ

Question: My users often mistype my domain. Can I register these "misspelled" domains and redirect them to the "correct" domain via Web Redirect record?

Answer: Yes, absolutely. This is one of the main benefits of using web redirects.

Question: How many web redirect records can I create for a domain?

Answer: There is no limit to the number of web redirect records you can create for a domain. However, keep in mind that too many redirects can slow down your website. 

Question: How can I test my web redirect record? 

Answer: You can test your web redirect record by entering the old URL into a browser and making sure that it redirects to the new URL. 

Question: How long does it take for a web redirect record to take effect? 

Answer: It can take anywhere from a few minutes to several hours for a web redirect record to take effect, depending on the TTL (time to live).

 

Last modified: 2024-09-24
Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more