We're currently in the process of taking a bunch of old mini sites and combining into one larger site, but having issues with the 301 redirect on one of them.
This is what we're using, which has worked fine in the past on other sites, but for some reason on this particular site it's only redirecting the home page - sub pages are going to the old site.
Anyone spot an error we're missing?
Code:
RewriteEngine onRewriteCond %{HTTP_HOST} !^(www\.casinobonusesonline\.org.uk)?$
RewriteRule (.*) http://www.ukbettingsites.org.uk/$1 [R=301,L]
Should be redirecting casinobonusesonline.org.uk to ukbettingsites.org.uk, which it does for the home page, but all sub pages stay on the old domain so guessing there's a syntax error or something? Htaccess isn't my strong suit...