(Solution!) Redirect domain.com and co-domains to www.domain.com

Furthermore I have other domains set as co-domains in ISPConfig2. Therefore I wanted to have all these co-domains (mydomain.net; mydomain.info; mydomain.eu etc.) redirected to their respective equivalents (www.mydomain.net;www.mydomain.info;www.mydomain.eu etc.) .

The solution for this is simple. Put following code into Apache Directives field: