Forum Moderators: coopster
i own 2 domains...
say my-domain.com and my-domain.org
my-domain.com is hosted at yahoo domains(this is forwarded to the my-domain.org site) and i run a dedicated server where i host the .org domain...
The problem is, i want to redirect
my-domain.com/subdir/
to
my-domain.org/subdir
right now my-domain.com/subdir/ gets forwarded only to my-domain.org/
yahoo wont let me forward to anything but just the .org site...
is there way to do the forward i want to using $_SERVER['HTTP_REFERER'] to detect what the user typed in and use it to do a redirect based on location.header..
thanks.
Habtom
You could use the header [uk.php.net] function, but there is probably a better solution. If you can use .htaccess then that is a better solution.