What Kind of Redirect Would This Be?

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^test.co.uk$ [NC]
RewriteRule ^(.*)$ http://test.co.uk/$1 [L,R=301]

I noticed theres no www anywhere, so what kind of redirect would this be?

And what is the proper way to redirect a wordpress site from http://www.site.co.uk/ to http://site.co.uk/?


Why the RewriteBase directive?

Is it possible/likely that you’d have test.co.uk co-located with any other domain (except www.test.co.uk, of course)?

I’d not bother creating a new Apache variable with (.*) so I’d replace your rule with:

RewriteRule .? http://test.co.uk%{REQUEST_URI} [R=301,L]

www or not? What’s your preference? What have you used when you configured WP? Generally speaking, they’re the same (except when using https) so don’t sweat the petty stuff.