RewriteEngine on
#RewriteCond %{HTTP_HOST} ^trustmoversfreight.com$ [NC,OR]
#RewriteCond %{HTTP_HOST} ^trustmoversfreight.com$

RewriteCond %{HTTPS_HOST} ^trustmoversfreight.com$ [NC,OR]
RewriteCond %{HTTPS_HOST} ^trustmoversfreight.com$
RewriteCond %{REQUEST_URI} !public/
RewriteRule (.*) /public/$1 [L]


### WWW & HTTPS

# ensure www.
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# ensure https
#RewriteCond %{HTTP:X-Forwarded-Proto} !https
#RewriteCond %{HTTPS} off
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

### WWW & HTTPS

# php -- BEGIN cPanel-generated handler, do not edit
# Set the â€œea-php80â€? package as the default â€œPHPâ€? programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php80 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
<Files .env>
    Order allow,deny
    Deny from all
</Files>
#<Files ".*">
#    Order allow,deny
#    Deny from all
#</Files>

