Title says it all really, I want to be able to 301 redirect from subdomain.domain1.com
to domain2.com
.
I have full access to the servers and have tried various things using .htaccess
but have had no success.
The reason for this is because I have a site that was hosted on a subdomain but has since moved to its own domain and I want to redirect any requests to the right place. How would one go about achieving this?