Redirect http:// to http://www via htaccess Posted on March 14, 2011 by Imran Rashid Reading Time: < 1 minuteAdd the below code to your htaccess file, replacing the domain name with yours. RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.google\.co.uk$ RewriteRule (.*) http://www.google.co.uk/$1 [R=301,L]