Understanding the Cname and HTTP Redirect Concepts
Often computers on the Internet have many different roles as Web server, FTP Server , Mail Server or any other role. Often , in order to hide this, the administrators are using CNAME Records to give each computer different names (aliases). For instance, a server that stands behind the Brighthub.com can be be both a Web Server and a FTP Server and therefore we can define two CNAME records for these:
www.brighthub.com = server1.brighthub.com
ftp.brighthub.com = server1.brighthub.com
server1.Brighthub.com can point to a single IP address such as 192.168.1.1
CNAME stands for Canonical Name and it's actually an ALIAS. A CNAME is not a canonical name, but rather an alias for a canonical name. Whenever you are in doubt about the use of CNAME's, you should make A records instead.
HTTP Redirect is a method of redirecting a URL by the means of the HTTP redirect. For example let's say we have a URL that is old and obsolete and we want to automatically redirect the user from the old URL to the new URL in a way that is transparent for the user. In order to do this we can use different techniques and one of them it is the HTTP Redirect.
One of the often used techniques is the HTTP refresh where the HTML code of the web site will automatically refresh the page and send the user to a new URL.
For example, you want to redirect the users that access a page on your website to a new page. You will then modify your old HTML code so it contains the following code :
<meta http-equiv="Refresh" content="0;URL=http://www.mydomain.com/newpage.html" />
This code will automatically redirect all the visitors to the http://www.mydomain.com/newpage.html