G
Yes, add the rewrite rules in the root of your site and don't forget to add the /app directory inside the .htaccess file this way:
RewriteBase /app
after the line
RewriteEngine on