www to non www in .htaccess where subdomain already exists -


I got loads of examples from www to rewrite www, but I'm just looking to check it out The way that the practice is Www is allowed when the subdomain already exists then redirection ...

So we say that I want to enable typing people:

  http://www.shop.mysite.com  

and redirected them

  http://shop.mysite.com  

What is the sequence below Will this allow?

Rewriteignin rewrite code% {HTTP_HOST} ^ www. .shop .. Mesiteite $$ [NC] Reerratrile ^ (. *) $ Http: //shop.mysite Yes, I know that it sounds silly, but people in my organization think about the possibility of typing our full subdomain URL. And sorry for the kind of relationship with a www

,

Be sure, it works! You can check your htaccess on


Comments