I have a website which is split into two, as there are two distinct parts of the business. I would like each to have its own domain name. The second domain name is parked on the server, so whether a visitor enters www.domain1.com or www.domain2.com, they are directed to the "normal" homepage.
I had thought that this would be a simple case of putting a 301 redirect on the server, but that doesn't work for some reason.
My host has suggested .htaccess rewrites, but I don't know if this would work (and have no idea how to do it anyway).
Can anybody help me, please?