need to 301 redirect like that - www.domain.com/dir/index.php will be redirected to www.anotherdomain.com/index.php and all the other...
Separate names with a comma.