Redirect sub domain to another host
I manage several hosting accounts all of which have a specific purpose. For example, I have an account for hosting my own personal sites, another for client sites and then a third host for development purposes. With my development server this is where I’ll develop various sites and applications which I can then demo to the client. However, to maintain a consistent brand whilst keeping the development stuff away from the live stuff means that I’ve had to redirect a sub domain from my live server to the development server. I do this for each new client I do work for.
So how exactly do you do this? Well, let’s say I wanted to redirect the sub-domain “something.michaelgarethmorgan.com” to another hosting account which is on a completely different server. I’d need to know the IP address of the alternate host as well as have cPanel access on both servers.
So, on the main server in cPanel go to “Simple DNS Zone Editor” which is a utility that lets you create A and CNAME records. For this task we’re going to create a new A record. In the name field simply type “something” – whatever you put here will be used as the sub-domain. In the address box type in the IP address of the alternate host, then click “Add A Record”.
Now, log into cPanel on the alternative server. Here, we’re going to simply add a new sub-domain, in this case it would be “something”. Once the sub-domain is created whenever I were to visit “something.michaelgarethmorgan.com” it would serve the files from the alternate server without you even knowing it.
This can be very useful if you’d like to keep your media and bulky files stored on a separate server away from the one handling your everyday web traffic. This can not only reduce server load but can also make it easier to maintain your files.
And that’s it. Redirecting a sub-domain to another host only takes a minute or two.







