Can anyone help with the following apache redirection problem?
The following lines redirect anything that is not www.whatever.co.uk (optionally followed by a query string) to www.whatever.co.uk (keeping the query string), except that it does not work for dev.whatever.co.uk
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.whatever\.co\.uk [NC]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)$ [
whatever.co.uk...] [R=301,L]
If anyone can throw any light on why it is not redirecting dev.whatever.co.uk, it would be greatly appreciated.