I have a cpanel account, with primary domain domain.net, hosting 2 website (having 2 directories website1 and website2). i created the subdomain and redirections.
website1.domain.net -> domain.net/website1
website2.domain.net -> domain.net/website2
I purchase a seperate domain: domain.com and tried to map it on a subdomain mentioned previously websbite2.domain.net.
I configured the DNS mapping for domain.com and created an addondomain in cpanel. The redirection works fine.
My problem is that whenever I type domain.com in a browser it changes the url to domain.net/website2.
Is there a way to do the redirection but keeping the domain unchanged?
Thanks
website1.domain.net -> domain.net/website1
website2.domain.net -> domain.net/website2
I purchase a seperate domain: domain.com and tried to map it on a subdomain mentioned previously websbite2.domain.net.
I configured the DNS mapping for domain.com and created an addondomain in cpanel. The redirection works fine.
My problem is that whenever I type domain.com in a browser it changes the url to domain.net/website2.
Is there a way to do the redirection but keeping the domain unchanged?
Thanks