View Single Post
Old 11-16-2009, 12:27 AM  
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
and to add my , this is what I use:

Code:
RewriteEngine on
rewritecond %{http_host} ^domain\.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc,L]
edit - to add mine's different than the others' above, cos I *only* want to rewrite domain.com->www.domain.com
hence the ^domain.com
the others use !^www.domain.com
which would rewrite subdomain.domain.com which I can't have
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202

Last edited by borked; 11-16-2009 at 12:29 AM..
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote