I have an established domain exampledomain.ca which is an addon to basedomain.ca.
I have the following in htaccess to redirect variations and it has been working perfectly.
RewriteCond %{HTTP_HOST} ^(exampledomain.ca)$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(exampledomain.basedomain.ca)$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www.exampledomain.basedomain.ca)$ [NC]
RewriteRule ^(.*)$ http://www.exampledomain.ca/$1 [R=301,L]
I registered exampledomain.com, exampledomain.net and exampledomain.org and included them as addon domains with the same document root as exampledomain.ca.
I then edited htaccess to include the following:
RewriteCond %{HTTP_HOST} ^(exampledomain.com)$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www.exampledomain.com)$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(exampledomain.org)$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www.exampledomain.org)$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(exampledomain.net)$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www.exampledomain.net)$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(exampledomain.ca)$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(exampledomain.basedomain.ca)$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www.exampledomain.basedomain.ca)$ [NC]
RewriteRule ^(.*)$ http://www.exampledomain.ca/$1 [R=301,L]
The problem is that if I use www.exampledomain.com or www.exampledomain.org I get nothing. If I leave off the www they redirect fine; and exampledomain.net redirects properly with or without the www.
Any ideas?
Sign In
Create Account









