I have many TLD's for my domain, for US users it's .COM, for German users it's .DE, etc. I redirect them all to the .COM domain using CNAME records. The reason is to prevent getting a penalty from Google for duplicate content.
Is there a way to still detect the TLD the user entered, so I can display the page in the right language?