hey guys
this rewrites all www. to non's ,server wide across all my domains.. how do i do it the other way round?
RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC] RewriteRule (.*) http://%1/$1 [R=301,L]
much appreciated
RewriteCond %{HTTP_HOST} thesite.net [OR] RewriteCond %{HTTP_HOST} www.thesite.net [OR] RewriteCond %{HTTP_HOST} thesite.com RewriteRule (.*)$ http://www.thesite.com/$1 [L,R=301]
This is an example for redirecting /xxx.net /www.xxx.net and /xxx.com site to the www.xxx.com version.
For each RewriteCond you an [OR] except the last.
Hope that helps.
*For each RewriteCond use an [OR] except the last.
Sorry for the typo there.