title: three domains redirect to main domain best practice apache2
body: <p>I have three domains ex: domain.com, domain.de and domain.co.uk. The com domain is a global (main) domain and the others are country specific domains.  I would like to redirect the co.uk and the .de domain to domain.com/de/ and domain.com/uk/.</p>
  
  <p>What's the best way to do this on apache? Using rewrite rules in htacess file? or using php? Is it better to do a 301 redirect (SEO wise)?</p>
  
  <p>Thanks for the reply's.    </p>