This article will walk you through adding a domain forwarder in WHM.
In the WHM interface, click on "Setup/Edit Domain Forwarding" under the "DNS Functions" section.
- Click Click to Create.
- Click Setup Forwards.
- In the Domain column, enter the domain whose visitors you wish to redirect.
- In the Redirection URL column, enter the domain or subdomain to which you wish to redirect visitors.
- Click Save Map. A confirmation message will appear.
Please note that this feature requires a second, unused IP address to dedicate to this feature. When set up, a new VirtualHost entry will be added to your Apache configuration with this unused IP that resembles the following:
ScriptAliasMatch .* /usr/local/cpanel/cgi-sys/domainredirect.cgi
which will redirect all requests using this secondary IP (220.127.116.11 in the example) to the domain(s) that are setup in the WHM interface.
We have some further information on this in our documentation here.