View Single Post
Old 8th June 2009, 03:28
lubos lubos is offline
Join Date: Oct 2007
Location: Belfast, UK - NI
Posts: 59
Thanks: 29
Thanked 17 Times in 13 Posts
Lightbulb (Solution!) Redirect and co-domains to

I wanted to redirect to

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

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

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www
RewriteRule (.*) http://www.%{HTTP_HOST}$1 [L,R]
Afterwards each domain will redirect to its respective www.domain.tld

Thanks developers for such excellent tool as ISPConfig!
Safe computer? Only when unplugged.
Reply With Quote
Sponsored Links