0
I wonder if you have how with . htaccess, do the following redirect:
Url: https://exemplo.com/sales and https://exemplo.com/admin
When the user type or sales or admin he redirects to the page:
0
I wonder if you have how with . htaccess, do the following redirect:
Url: https://exemplo.com/sales and https://exemplo.com/admin
When the user type or sales or admin he redirects to the page:
0
There are several ways to redirect your website access.
Meet some of them:
Redirecting the account’s main domain: Redirectmatch ^/$ http://dominio.com.br/diretorio Redirects "www.dominio.com.br" to "www.dominio.com.br/store" Redirect 301 /page.html http://www.seudominio.com.br/novapagina.html Redirects access to "pagina.html" file to "http://www.seudominio.com.br/novapagina.html”
Redirect 301 / http://www.dominio.com.br/ Redirects your account access to the address "http://www.dominio.com.br/”
Redirectmatch 301 (.*). html$ http://www.seudominio.com.br$1.php Caso você tenha mudado todos os seus arquivos de extensão “.html” para “.php” e tenha links antigos com referências para os “.html”, você pode evitar que o usuário acesse uma página que não existe mais com essa linha; Ela redireciona qualquer acesso a um “.html” substituindo “.html” to ".php".
Options +Followsymlinks Rewriteengine on Rewritecond %{HTTP_HOST} . Rewritecond %{HTTP_HOST} ! site.com.br Rewriterule (.*) http://site.com.br/$1 [R=301,L]
Browser other questions tagged php htaccess
You are not signed in. Login or sign up in order to post.
There is. There is a directive
Redirect
for that reason.– Woss