Can anyone help me with this:
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://www.$1 [R=301,L]
What I'm trying to do is create a rewrite rule that will send you to the www version of the site if you try to connect using a non-www version.
The condition works, but there are no rules, it sends me to http: // Can someone suggest a hoe, I can fix it. I expected $ 1 = everything in the condition above between ^ and $ Thanks
source
share