← Desenvolvimento

Redireccionar dominio

Lida 1641 vezes

Offline

Nuno 
Administrador
Mensagens 7780 Gostos 216
Feedback +2

Troféus totais: 42
Trófeus: (Ver todos)
100 Poll Votes Level 7 Search Mobile User Level 6 Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes

Qual a melhor maneira de redireccionar www.xpto.pt para www.xtpo.pt/site ?
Offline

asturmas 
Administrador
Mensagens 19734 Gostos 50
Feedback +2

Troféus totais: 39
Trófeus: (Ver todos)
Mobile User Windows User Super Combination Combination Topic Starter 100 Poll Votes 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

Via htaccess ou com

Código: [Seleccione]
<meta http-equiv="refresh" content="0;url=URL">
Colas isso numa pagina e onde ta 0 poes os segundos para redicionar e em URL o endereço.
Offline

anjo2 
Membro
Mensagens 3020 Gostos 0
Troféus totais: 31
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4 Level 3 Level 2

no .htaccess colocar:

Código: [Seleccione]
RedirectMatch temp ^/$ http://www.xpto.pt/site