1
Guys, see if you can help me, I’ve already looked it up, and I can’t find anything on this. The following I have 2 domains configured for a site in Laravel 7 so far ok. I have configured htaccess as follows:
RewriteBase /
<IfModule mod_rewrite.c>
RewriteEngine on
#RewriteCond %{SERVER_PORT} 443
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://dominio1.com.br/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
domain 1.com.br is the main one and I have domain 2.com.br redirecting to the main one only when I type https://domain 2.com.br it is not redirecting to domain 1. But if I type http://domain 2.com.br it redirects right to the domain 1.
What can be done for https is also redirected to domain 1 when typed in the url?
Thank you