<IfModule mod_rewrite.c>
  RewriteEngine On
    
  # RewriteCond %{HTTP_HOST} ^www\. [NC]
  # RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
  RewriteRule ^(.*)$ https://%1/$1 [L,R=301]
  # RewriteRule ^.*_nuxt.*$ / [R=301,L]
  # RewriteCond %{SERVER_PORT} 80
  RewriteCond %{SERVER_PORT} !=80 [OR]
  RewriteCond %{SERVER_PORT} !=443
  RewriteRule ^index.php(.*) http://localhost:3002/$1 [P,L]
  RewriteRule (.*) http://localhost:3002/$1 [P,L]

</IfModule>

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