<IfModule mod_rewrite.c>
   RewriteEngine On 
   RewriteRule !^public index.php [L]
</IfModule>
