View Single Post
Old 01-08-2008, 06:20 PM  
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Code:
<IfModule mod_rewrite.c>
  RewriteEngine On 
  RewriteCond &#37;{SERVER_NAME} !^(www.?)domain.com$ [NC] 
  RewriteRule .* http://www.domain.com%{REQUEST_URI} [QSA,R=permanent,L]
</IfModule>
I haven't tested the above, but it feels right to me.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote