add htaccess for magic redirection.

update index.php because file_get_contents doesn't mind that it
receives a directory.