The picture isn't too clear but you can probably rearrange a few files and use symlinks to solve the problem.
For your example, you could make a symlink DIR/friend1.php that points to /friend1.php, but you would have to do this for all your files, or just move them.