1 2 3 .htaccess Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site. Redirect /paginavelha.html http://WWW.SITE_DESTINO.COM.BR/index.php 1 Redirect /paginavelha.html http://WWW.SITE_DESTINO.COM.BR/index.php Java Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site. <% String redirectURL = "http://WWW.SITE_DESTINO.COM.BR/"; response.sendRedirect(redirectURL); %> 1 2 <% String redirectURL = "http://WWW.SITE_DESTINO.COM.BR/"; response.sendRedirect(redirectURL); %> Ruby Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site. def old_action redirect_to "http://WWW.SITE_DESTINO.COM.BR/" end 1 2 3 def old_action redirect_to "http://WWW.SITE_DESTINO.COM.BR/" end Perl Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site. $q = new CGI; print $q->redirect("http://WWW.SITE_DESTINO.COM.BR/"); 1 2 $q = new CGI; print $q->redirect("http://WWW.SITE_DESTINO.COM.BR/"); ColdFusion Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site. $q = new CGI; <.cfheader name="Location" value="http://WWW.SITE_DESTINO.COM.BR"> 1 2 $q = new CGI; <.cfheader name="Location" value="http://WWW.SITE_DESTINO.COM.BR"> Para mais artigos sobre hospedagem, acesse: https://king.host/wiki/base-de-conhecimento/hospedagem/.", "image": "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRVx5pNjhifPnPsAXXk3j-uXTCvk1Bi_or71GXljpz8vqay1OxP94g_xugP12uaEjy4W6R6N5WiVPe2c55rw2LqhOnC6rCY1HG3u4rFbJn5v0sEseTnGR59cZkU5vYrzn1QSROohNe7Fxe/s640/redirecionar.jpg", "datePublished": "", "dateModified": "", "author": { "@type": "Organization", "name": "TOP 10 News" }, "publisher": { "@type": "NewsMediaOrganization", "name": "TOP 10 News", "logo": { "@type": "ImageObject", "url": "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX5vfDSXicrNwAyumArLeqjai_vaDSyRAc_7itQV62HjFB6u6qOuVCCGmvkrk1lc7vGKiVof5OAa4lcZKwJ-rdnaRMfbIPITwzq0Juo5850qUI6qTsoG4cMaX6lGbeMcWzH6ZPPb1s7eIQ/s16000-rw/topnot.png" } }, "mainEntityOfPage": { "@type": "WebPage", "@id": "https://www.top10news.com.br/2019/01/como-redirecionar-seu-site-para-outra.html" }, "articleSection": "Como redirecionar seu site para outra página na Web ", "inLanguage": "pt-BR" } 1 2 3 .htaccess Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site. Redirect /paginavelha.html http://WWW.SITE_DESTINO.COM.BR/index.php 1 Redirect /paginavelha.html http://WWW.SITE_DESTINO.COM.BR/index.php Java Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site. <% String redirectURL = "http://WWW.SITE_DESTINO.COM.BR/"; response.sendRedirect(redirectURL); %> 1 2 <% String redirectURL = "http://WWW.SITE_DESTINO.COM.BR/"; response.sendRedirect(redirectURL); %> Ruby Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site. def old_action redirect_to "http://WWW.SITE_DESTINO.COM.BR/" end 1 2 3 def old_action redirect_to "http://WWW.SITE_DESTINO.COM.BR/" end Perl Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site. $q = new CGI; print $q->redirect("http://WWW.SITE_DESTINO.COM.BR/"); 1 2 $q = new CGI; print $q->redirect("http://WWW.SITE_DESTINO.COM.BR/"); ColdFusion Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site. $q = new CGI; <.cfheader name="Location" value="http://WWW.SITE_DESTINO.COM.BR"> 1 2 $q = new CGI; <.cfheader name="Location" value="http://WWW.SITE_DESTINO.COM.BR"> Para mais artigos sobre hospedagem, acesse: https://king.host/wiki/base-de-conhecimento/hospedagem/.", "image": [ "" ], "datePublished": "", "dateModified": "", "author": { "@type": "Organization", "name": "Top10News" }, "publisher": { "@type": "Organization", "name": "Top10News" } }

19 de janeiro de 2019

Como redirecionar seu site para outra página na Web

       

Por Redação Top10News

Publicado em: 19 de janeiro de 2019



Como redirecionar seu site para outra página na Web
Precisa redirecionar seu site para outro local? Utilize os scripts abaixo de acordo com a linguagem de programação do seu site para efetuar redirecionamento de páginas. Atente-se aos valores em letras com caixa alta, eles devem ser inseridos de acordo com a sua preferência de redirecionamento.
Exemplo: url=http://www.aquimaisbrasil.net/

Redirecionar seu site com HTML

Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site.

HTML (Mantendo a URL ao redirecionar)

Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site.
Redirecionar seu site com HTML
Redirecionar com iFrame

PHP

Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site.

ASP

Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site.

ASP.NET

Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site.

.htaccess

Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site.

Java

Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site.

Ruby

Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site.

Perl

Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site.

ColdFusion

Utilize o código HTML abaixo substituindo o termo http://WWW.SITE_DESTINO.COM.BR/ pelo endereço do seu site.
Para mais artigos sobre hospedagem, acesse: https://king.host/wiki/base-de-conhecimento/hospedagem/.
 
 
 
 

Nenhum comentário:

Postar um comentário