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 would like users entering www.domain1.com to continue to go to the "normal" homepage, and users entering www.domain2.com to go to /domain2/
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?