RewriteEngine On

RewriteCond   /dat/ez.no/static/index.html -f
RewriteRule  ^/$              /static/index.html [L]
RewriteCond   /dat/ez.no/static/index.html -f
RewriteRule  ^$               /static/index.html [L]

RewriteCond   %{REQUEST_METHOD}       !^POST$
RewriteCond   /dat/ez.no/static$1/index.html -f
RewriteRule   ^(.*)$  /static$1/index.html [L]

RewriteRule !\.(gif|css|jpg|png|jar|ico|js)$ /index.php