Redirecionar paginas para outro diretorio. RESOLVIDO

  • spinelli
  • Avatar de spinelli Autor do Tópico
  • Offline
  • JCB! Senior
  • JCB! Senior
Mais
14 anos 4 meses atrás #20514 por spinelli
spinelli created the topic: Redirecionar paginas para outro diretorio. RESOLVIDO
Pessoal,


Como faço para não perder os links referentes as paginas de um site que já está indexado no google e que agora vou fazer algumas modificações mas não queria perder os links, tipo:


pagina X tera o mesmo conteudo so que ficara agora dentro de outro diretorio, assim:

Atual: wwww.meusite.com.b/paginaX

Como vai ficar: wwww.meusite.com.b/novodiretorio/paginaX


como redirecionar pagina por pagina para não perder posições no google?

Sei que no .htaccess tem uma maneira com mod_rewrite mas não faço a minima ideia de como proceder.

Se algum puder me ajudar agradeço.


Spinelli

Please Entrar ou Registrar to join the conversation.


Mais
14 anos 4 meses atrás #20521 por Trorram
Trorram replied the topic: Re: Redirecionar paginas para outro diretorio. Como?
@Trorram = Uma maneira, tem o crédito no final.


________________
Existem várias formas de redirecionar os acessos do seu site.

A idéia deste artigo é de apenas orientar os usuários com códigos prontos, mas é de responsabilidade total do usuário desses sistemas testa-los. Qualquer problema referente a eles é de total responsabilidade do cliente.

O Suporte iLax não oferece suporte técnico para procedimentos no arquivo .htaccess. Os tutoriais são cortesia do suporte técnico Flex.

Conheça alguns deles:

* Redirecionando o domínio principal da conta: RedirectMatch ^/$ http://ilax.com.br/suporteflex
Redireciona “ www.ilax.com.br ” para “ www.ilax.com.br/loja
* Redirect 301 /pagina.html http://www.seudominio.com.br/novapagina.html

Redireciona o acesso ao arquivo “pagina.html” para “ www.seudominio.com.br/novapagina.html

* Redirect 301 / http://www.suahospedagem.com.br/

Redireciona o acesso de sua conta para o endereço “ www.suahospedagem.com.br/

* RedirectMatch 301 (.*)\.html$ [url=http://www.seudominio.com.br$1.php]http://www.seudominio.com.br$1.php[/url]

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” para “.php”.

* Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^site\.com\.br
RewriteRule (.*) http://site.com.br/$1 [R=301,L]


Remove o “www” do endereço de acesso, isto é, redireciona quem acessou pelo endereço “ www.seusite.com.br ” para “seusite.com.br”; Isso é bom para padronizar o acesso ao seu site e ajuda na indexação dos buscadores, fazendo-os indexar apenas links sem “www”.
Para alterar a linha 4 (domínio, no exemplo site\.com\.br), adicione “\” antes de cada “.”, assim o “.” será interpretado como ponto e não parte de uma expressão regular.
Exemplo: mudando site.com.br para meusite.net.br.teste.exemplo (supondo que exista este domínio): RewriteCond %{HTTP_HOST} !^meusite\.net\.br\.teste\.exemplo

* Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^seusite.com.br [NC]
RewriteRule ^(.*)$ http://www.seusite.com.br/$1 [L,R=301]


Adiciona “www” ao endereço acessado sem o “www”. A idéia de padronizar surge da mesma idéia do código anterior a esse.

* Options +FollowSymLinks
RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3, 9}\ /.*index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]


Esconde o acesso ao arquivo “.index.php” para “/”.
Exemplos: <!-- w --> www.ilax.com.br/index.php <!-- w --> > <!-- w -->[url=http://www.ilax.com.br;]www.ilax.com.br;[/url]<!-- w --> <!-- w --> www.meusite.com.br/teste/index.php <!-- w --> > <!-- w --> www.meusite.com.br/teste/ <!-- w -->

* DirectoryIndex paginainicial.php


Se colocado em um determinado diretório, faz com que ao acessarem aquele diretório, ao invés do servidor enviar o acesso a um arquivo do tipo “index”, como é o padrão, ele envia para “paginainicial.php”, como se redefinisse o nome do arquivo “index.php”.

* RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.meusiteseguro.com.br/$1 [R,L]


Reenvia o acesso ao seu site feito através do “http” para o “https”.
Por exemplo: http://www.minhahospedagem.com.br > https://www.minhahospedagem.com.br/

Fonte

Please Entrar ou Registrar to join the conversation.

  • spinelli
  • Avatar de spinelli Autor do Tópico
  • Offline
  • JCB! Senior
  • JCB! Senior
Mais
14 anos 4 meses atrás #20654 por spinelli
spinelli replied the topic: Re: Redirecionar paginas para outro diretorio. Como?
Torran, foi de muita valia sua orientção.

Ainda estou estudando este modulo do apache e agradeço muito.

Obrigado.

Spinelli

Please Entrar ou Registrar to join the conversation.

Mais
11 anos 3 semanas atrás #87393 por vimaia
vimaia replied the topic: Re: Redirecionar paginas para outro diretorio. RESOLVIDO
Obrigado pela orientação. Já estou conseguindo redirecionar os [url=http&#58;//www&#46;mundosite&#46;com&#46;br/desenvolvimento-de-sites/desenvolvimento-de-site&#46;html:18b6l4lh]sites[/url:18b6l4lh]!

Please Entrar ou Registrar to join the conversation.

Mais
10 anos 10 meses atrás #89296 por Tidus
Tidus replied the topic: Re: Redirecionar paginas para outro diretorio. RESOLVIDO
First of all, despite the fact that there are plenty of scenes there with her naked there, I want you to know that this is pretty nice to watch film, although there are some dramatic moments when you can even [url=http&#58;//omanonca198031&#46;jigsy&#46;com/#virtualbox_guest_additions_get:12ti38ft]Virtualbox Guest Additions get[/url:12ti38ft] cry, if only you are a sissy. The other one is [url=http&#58;//singvoliry197822&#46;eklablog&#46;com/#where_from_download_ft232r_usb_uart_driver:12ti38ft]where from download ft232r usb uart driver[/url:12ti38ft] called The Model Solution which will give some amazing shots on her nude body and this will be just great, believe me. Well, bad things happen you know, so why don't we just watch these photos [url=http&#58;//verneusenna198444&#46;jigsy&#46;com/#superman_stamina_free_to_download:12ti38ft]Superman Stamina free to download[/url:12ti38ft] of Mare Winningham naked that my friend got for you. Who [url=http&#58;//betdydila197522&#46;jigsy&#46;com:12ti38ft]paint tool sai free download full version[/url:12ti38ft] saw Diana Kauffman nude will appreciate this review as I have got some new pictures of her. But the [url=http&#58;//taulorealfoy198623&#46;jigsy&#46;com/#netgear_wn111v2_driver_get:12ti38ft]netgear wn111v2 driver get[/url:12ti38ft] problem is, that I haven't found any woman that could be compared with her. First of all, I would like to thank ya'll for coming here on my website because this is what [url=http&#58;//complexige197541&#46;eklablog&#46;com/#airport_utility_5_6_get_link:12ti38ft]AirPort Utility 5.6 get link[/url:12ti38ft] I do for a living. By the way, forget about Samantha for a few seconds as I have some story to [url=http&#58;//cipelaback197335&#46;jigsy&#46;com/#where_from_download_no_file_hosting_shsh_blobs_for_ios_5_1_1:12ti38ft]where from download no file hosting Shsh Blobs For Ios 5.1.1[/url:12ti38ft] tell you. Anyway, I said to myself this Ok, today will be your day off so you won' work at all So, I went sleeping again and thought that even if I get up right now and start to do [url=http&#58;//highcompplotbar198125&#46;jigsy&#46;com/#where_from_get_no_file_hosting_neat_receipts_software:12ti38ft]where from get no file hosting neat receipts software[/url:12ti38ft] my job then I will never going to make it till tonight. But please don't think this would be it as I have prepared something else for you quite interesting and unique and that you won't find [url=http&#58;//sundpershighcomp198631&#46;eklablog&#46;com/#backup_exec_2010_r3_sp1_get_fast:12ti38ft]Backup Exec 2010 R3 SP1 get fast[/url:12ti38ft] on any other websites. In fact I didn't [url=http&#58;//itubacas198641&#46;jigsy&#46;com/#how_to_get_fast_wale_cashin_out:12ti38ft]how to get fast Wale Cashin Out[/url:12ti38ft] even realize she exists until I accidentally saw her photos on the web and became curious. She is my [url=http&#58;//maucasarvi197740&#46;eklablog&#46;com/#where_from_free_to_get_agent_ransack:12ti38ft]where from free to get Agent Ransack[/url:12ti38ft] lady for today and by that I mean I will masturbate all day long on her superhot pictures. I know there are plenty of that kind of places on the web featuring her naked shots and other stuff but only here you will be able [url=http&#58;//ponlemicsa198636&#46;jigsy&#46;com/#where_from_download_no_virus_cisco_nac_agent:12ti38ft]where from download no virus Cisco Nac Agent[/url:12ti38ft] to see full collection of her sexy shots. I wonder what would happened if she reads this review about her? Of course there would be only two options on [url=http&#58;//arinjogti198035&#46;jigsy&#46;com/#davinci_resolve_lite_download_no_virus:12ti38ft]Davinci Resolve Lite download no virus[/url:12ti38ft] this count.

Please Entrar ou Registrar to join the conversation.