RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]