<IfModule mod_rewrite.c>
    RewriteEngine On

    # This file goes in public_html itself (NOT inside the app folder).
    # It silently rewrites every request into energy-monitor/public/,
    # so visitors never see "/energy-monitor/public" in the URL — use
    # this when your host won't let you set a custom document root and
    # the whole Laravel app has to live inside public_html/energy-monitor.
    #
    # Upload the full project (including vendor/) to:
    #   public_html/energy-monitor/
    # Then put this file at:
    #   public_html/.htaccess

    RewriteCond %{REQUEST_URI} !^/energy-monitor/public/
    RewriteRule ^(.*)$ /energy-monitor/public/$1 [L]
</IfModule>
