RewriteEngine On
RewriteCond %{REQUEST_URI} !/public
RewriteRule .* /public/index.php [L]