I have used
RewriteEngine on
RewriteRule (.*) http://newdomain.com/$1 [R=301,L]
to successfully redirect from http://olddomain.com to http://newdomain.com. However the sub-pages http://olddomain.com/subpage still does not redirect to http://newdomain.com/subpage
How can it be done?
Simplest solution would probably be to place the following rule before the RewriteEngine on line:
This should bypass any redirect rules or conflicts you may have and force everything to redirect.