Closed RuanScherer closed 3 years ago
Olá @RuanScherer , conseguiu resolver? Estou com um problema parecido...
Pior que não
@RuanScherer problema foi resolvido?
Meu problema era similar, e descobri que a solução estava no .htaccess
Estou com problema de ERR_TOO_MANY_REDIRECTS. Alguém sabe como resolver?
@brunomoraisti como você está colocando o redirecionamento?
Arquivo .htaccess RewriteEngine On Options All -Indexes
RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php?route=/$1 [L,QSA]
Arquivo .htaccess RewriteEngine On Options All -Indexes
ROUTER WWW Redirect.
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
ROUTER HTTPS Redirect
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
ROUTER URL Rewrite
RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php?route=/$1 [L,QSA]
Seu .htaccess está correto. Já tentou acessar por outro navegador?
O meu tem funcionado assim
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
Ao redirecionar usando o método
redirect
os dados não são passados para o método do controlador da rota (o array de dados chega vazio). Segue trecho de código abaixo demonstrando: