Htaccess to force use WWW for mutlidomain.

Posted by Uchiha Itachi on Stack Overflow See other posts from Stack Overflow or by Uchiha Itachi
Published on 2010-06-01T10:42:34Z Indexed on 2010/06/01 10:43 UTC
Read the original article Hit count: 261

Filed under:
|
|

I found this code to force using www.

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.example.com$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301]

But i have many domain that pointed same directory. So i need a version of this code for multiple domains. It must run on any domain, is it possible ?

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about www