RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

 <FilesMatch ".(?:html|php)$">
        SetHandler application/x-httpd-alt-php82
 </FilesMatch>
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteCond %{HTTP_HOST} ^royalfoodeg\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.royalfoodeg\.com$
RewriteRule ^/?$ "https\:\/\/www\.royalfoodeg\.com\/" [R=301,L]