rewriteengine on rewritecond %{http_host} !^www\.domain\.com$ rewriterule ^(.*)$ http://www.domain.com/forums/ubbthreads.php [r=301]