RewriteEngine On

RewriteRule ^((images/.*)|(static/.*)|(setup.php)|(index.php))$ $1 [L,QSA]
RewriteRule ^(.*)$ index.php?path=$1 [L,QSA]