Domain redirect

Topics: User Forum
Nov 8, 2013 at 1:01 PM
Can anyone help, I have rules in place to redirect an old domain to a new domain, this is like
RewriteCond %{HTTP_HOST} ^www.olddomain.com$ [I]
RedirectRule ^/(.*)$ http://www.newdomain.co.uk/$1 [R=301]

RewriteCond %{HTTP_HOST} ^olddomain.com$ [I]
RedirectRule ^/(.*)$ http://www.newdomain.co.uk/$1 [R=301]

for www and for non-www which work perfectly when you enter www.olddomain.com you are redirected to www.newdomain.co.uk and the browser address bar changes BUT if you go to www.olddomain.com/aboutus.aspx for example this is not redirected and address bar stays displaying www.olddomain.com/aboutus.aspx and this happens for all pages.

Can someone advise on what I need to do to get the domain and all pages to redirect

Thanks