I'm using Apache 2. What I want is that if a user visits any file in
a certain directory, "demo", that they be redirected to another host
with the same file after the domain. For example, if they visit
http://www.olddomain.com/demo/test.php
they be redirected to
http://www.newdomain.com/demo/test.php
I tried putting this ".htaccess" file in the "demo" directory on the
www.olddomain.com computer, but it is not redirecting. Any ideas what
I'm doing wrong? Thanks, - Dave
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.+)$ http://www.newdomain.com/$1 [R,NC]