redirect for domain from cpanel account to another

Operating System & Version
CentOS v7.9.2009
cPanel & WHM Version
106.0.10

kemet_int

Registered
Nov 22, 2022
1
0
1
United Kingdom
cPanel Access Level
Root Administrator
Hi, I'm looking for some advice please on how to proceed

I currently have 2 cpanel profiles setup on WHM, 'domain.com' and 'domain.com.au'

I plan on redirecting domain.com.au to domain.com/au, do I need to delete the current profile for 'domain.com.au' before this will work? As when I try to create a 'domain alias' or 'domain' in the domain.com cpanel profile to setup a domain redirect, I receive the error ' ... (XID gumhaa) ... already exists in the userdata '. I have also added a redirect on the domain.com.au cpanel profile to go to domain.com/au but this doesn't seem to redirect. I would prefer an option which has the least amount of downtime, as I can imagine if/when I delete the cpanel profile for domain.com.au, something is bound to still conflict or throw up an error. Thanks
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,598
2,620
363
cPanel Access Level
Root Administrator
Hey there! I think the main question here, is do you need two separate cPanel accounts for these domains? If you plan to use email, you might, but if you don't you could simply delete the domain.com.au account and setup an Alias inside the domain.com account to point to that specific document root.

If you do need a separate account, a simple 301 redirect in the .htaccess file of domain.com.au would handle that redirection as well.