Manage domain

Buy domain




CloudfloorDNS Knowledgebase

home ->

DNS

Search the knowledgebase  
 

 

Article ID : # Last review : 2010-11-02 09:59:00
#5471

Advanced http redirects using the dns editing page

 

Whilst the management panel can provide 'simple' web forwarding, there are sometimes cases where more advanced web forwarding is required. Examples are forwarding a naked domain (just the domain name part without the 'www.') to your www.yourdomain.com for example. As simple as it sounds, this often causes issues.

CloudfloorDNS has implemented an advanced 'redirect' DNS type on the DNS editing page for your domain. Using the 'redirect' dns type you can create advanced forwards that automatically take care of the issues forwarding sub domains, naked domains, etc.

To create a redirect record, simply add a new DNS record using the 'REDIRECT://' record type. This is a special type of record that configure our web servers to forward your requests to another web site. In the data column put the full url you want to forward to, for example, http://www.mydomain.com. To forward the naked domain, leave the 'name' column empty. To forward a sub domain, put the name of the sub domain in the 'name' column, for example 'support'.

You can see in the example below that there is a redirect on the naked domain, using a blank name and redirect to a http:// address. This takes any requests for example.com and instantly forwards them to the www.example.com url

CloudfloorDNS HTTP Redirect

There are different types of redirects such as 301, 302, hidden frame, etc. These different types of redirects can be implemented by specifying an 'aux' value for the record. In most cases, leave it as zero.

Aux value set to 2 = 301 redirect type, moved permanently. We suggest you do not use this without good reason as a 'permanent' redirect is just that. It will be cached by search engines and users browsers directly and you may have no way to disable the forward at a later date as this data is stored locally on end users machines, not on our systems.

Aux value set to 1 = stealth forwarding - keeps your url in the browser url bar rather than showing the real url

Add 10 to the aux value to disable 'explicit' forwarding. Explicit forwarding is the default and will make www.yourdomain.com go to www.myotherodmain.com. It will also make www.youdomain.com/subdirectory go to www.myotherdomain.com. If you require that www.yourdomain.com/subdirectory go to www.myotherdomain.com/subdirectory, then do not use explicit forwarding.

keywords : http, redirect, forwarding, 301, 302, redirects, DNS Redirect, Redirect DNS Record


   
 

So that we can improve our search results, please let us know, did this help you? YES | NO

Please note that all articles are the property of Microtech Limited and must not be re-produced without express written permission


Subscribe to kb news feed