I know this is an extremely common question, and I've done my search and come up with code. What I want to do is have any request for [
images.olddomain.com...] to alias to [
images.newdomain.com...]
Is it possible to do this without a browser or search engine "knowing" they're at images.newdomain.com (i.e. file displayed is from images.newdomain.com but URL bar still shows images.olddomain.com)?
Here is the code I have which I've seen used on many searches, yet doessn't work. Do I need to have images.olddomain.com setup or not?
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^images.olddomain.com$ [NC]
RewriteRule ^(.*)$ [
images.newdomain.com...] [R=301,L]