Actually that's accomplished quite easily with a little Apache voodoo known as ModRewrite. Lets say you are using the fake directory app
RewriteEngine On
RewriteRule ^app/(.*)/?$ /index.php?app=$1
Place that in the .htaccess file and it will be completely transparent to the user.