<IfModule mod_rewrite.c>
    RewriteEngine On

    # Redirect any direct request to /public/* back to the clean URL
    RewriteRule ^public/(.*)$ /$1 [L,R=301]

    # Send every other request into the public/ directory transparently
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
