I wanted to redirect mydomain.com to
www.mydomain.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:
Code:
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!
Recent comments
6 hours 25 min ago
11 hours 17 min ago
20 hours 10 min ago
21 hours 9 min ago
1 day 56 min ago
1 day 2 hours ago
1 day 5 hours ago
1 day 13 hours ago
1 day 21 hours ago
1 day 23 hours ago