Forum Moderators: phranque
What's the most common way to do this?
For example, almost every company has a multi language page that will redirect you according to your country. In that case I think it's different they should using aliases or something like that.
Thank you.
[edited by: Sandro87 at 1:36 pm (utc) on June 1, 2009]
On name-based virtual servers it's not so easy. In most cases, the host will (by default) force you to define separate subdirectories for the "add-on domains" and this makes 'sharing' scripts and files between the subdomains difficult. In this case, it's usually easier to use explicit subdirectories to specify language instead of trying to use subdomains -- e.g. use example.com/en/ and example.com/de/ instead of en.example.com and de.example.com.
The other option is to upgrade to an IP-based virtual server. It the U.S., this typically costs $1/month.
Jim