Hi guys,
I already know basic Redirect www to non-www, using htaccess:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]
but how if we have parked domain too?
I already tried this but its not works, its says "The page isn't redirecting properly"
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.yourdomain2.com [NC]
RewriteRule ^(.*)$ http://yourdomain2.com/$1 [L,R=301]
please share your knowledge, what is the best way for this?