RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond $1 !^(index\.php|js|media|css|robots\.txt)
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
