RewriteEngine On
RewriteCond %{HTTP_HOST} dumaexport\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://dumaexport.com/$1 [R,L]

RewriteCond %{REQUEST_URI} !^public

RewriteRule ^(.\*)$ public/$1 [L]

<IfModule mod_expires.c>

    ExpiresActive On

    ExpiresDefault "access plus 4 weeks"

    ExpiresByType text/css "access plus 20 weeks"

    ExpiresByType text/javascript "access plus 20 weeks"

    ExpiresByType image/png "access plus 20 weeks"

    ExpiresByType image/jpg "access plus 20 weeks"

    ExpiresByType image/jpeg "access plus 20 weeks"

    ExpiresByType image/git "access plus 20 weeks"

    ExpiresByType image/gif "access plus 20 weeks"

    ExpiresByType image/svg "access plus 20 weeks"

</IfModule>

<IfModule mod_headers.c>

    <filesMatch ".(ico|jpg|jpeg|png|gif|svg|woff|woff2|js|css)$">

        Header set Cache-Control "max-age=604800, public, must-revalidate"

    </filesMatch>

</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit