如何将以下.htaccess规则转换为IIS?
RewriteEngine On
RewriteBase /app/
RewriteRule ^user/([0-9]+)/?$ user.php?id=$1 [QSA,L,NC]
# hide .php extension
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}/app/$1.php -f
RewriteRule ^(.+?)/?$ /$1.php [L]