I'm having trouble with one thing, I have several conditions to answer in my .htaccess but I can never answer them at once, just one or the other.
I have a project in Laravel in the path /public_html/portal/
to display need to redirect the user to the /public_html/portal/public
folder until then, okay, I have a .htaccess that does this. It is the same as below:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(|chat|infinite|cliente|cadastro)\.dominio\.com$ [NC]
RewriteRule ^(.*)$ portal/public/$1 [L]
The second line is for direct access to their domains, because I work with wildcards in my project.
The problem now
Based on this rewrite of line 3 how can I accomplish these two things:
https://www.dominio.com
to https://dominio.com