Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Trouble with a rewrite rule

0 views
Skip to first unread message

laredotornado

unread,
Oct 29, 2009, 7:03:47 PM10/29/09
to
Hi,

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]

0 new messages