i've searched google and have found plenty of examples, but i can't seen to get this to work.
i'd like to forward any requests sent to
basically i want to rewrite any requests to:
basically what i have is a bunch of people linking to galleries on one server. i want to move the galleries to a new server but do not want to break everyone's links. i also want the new url hidden so i figured mod_rewrite would be perfect.
here is what i have tried. i have placed the following in to an .htaccess file in the /galleries directory on abc.com
#this only works if i call http://abc.com/galleries
#if i call http://www.abc.com/galleries/image.jpg
it does not work
RewriteRule ^$ http://www.xyz.com/galleries
#this doesn't do a thing
RewriteRule ^/galleries(.*)$ http://xyz.com/galleries
comments/suggestions would be appreciated.