config.php ( If you want to use yoursite with “www” )
define(‘HTTP_SERVER’, ‘http://www.yoursite.co.uk/‘);
define(‘HTTPS_SERVER’, ‘http://www.yoursite.co.uk/‘);

.htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.yoursite\.co\.uk
RewriteRule (.*) http://www.yoursite.com.uk/$1 [R=301,L]

If you want to use yoursite without “www”
config.php

define(‘HTTP_SERVER’, ‘http://yoursite.co.uk/‘);
define(‘HTTPS_SERVER’, ‘http://yoursite.co.uk/‘);

.htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.yoursite\.co\.uk$
RewriteRule ^(.*)$ http://yoursite.co.uk/$1 [L,R=301]