SEO Friendly Rewrite Method to Move Website URL From Subdirectory to Root Parent Folder SEO friendly reescrever método para mover URL do site de subdiretório raiz pasta pai
You have set up your site, blog such as WordPress, Drupal, LiveJournal, or content management system such as Joomba and Mambo nicely at URL link such as http://www.domain.com/mylovelysite, and get decent traffic to the web site. Você criou seu site, blog como o WordPress, Drupal, LiveJournal, ou sistema de gerenciamento de conteúdo, tais como Joomba Mambo e agradavelmente a URL link como http://www.domain.com/mylovelysite, decente e obter o tráfego para a Web site. Now in the reorganization exercise, you decide to move the site from sub-directory to the parent folder, properly at site’s root location instead. Agora, na reorganização do exercício, você decide avançar para o site da sub-diretório para a pasta pai, devidamente em vez local raiz do site. Moving the site to another folder or root folder will break all links and backlinks referenced to your website. Movendo o site para outra pasta ou pasta raiz irá quebrar todas as ligações e backlinks referenciada ao seu site. If these broken links are not handled and redirected properly, there will be a lot of 404 page not found error, potentially drive away visitors, or in worst case, affect and lower the search engine ranking position (SERP). Se estes links quebrados e não são tratadas adequadamente redirecionadas, haverá um lote de 404 página não encontrada erro, potencialmente expulsam os visitantes, ou no pior caso, afectar o motor de pesquisa e de menor ranking posição (SERP).
The best way to manage the change of site’s URL due to movement of directory location is by using redirection feature provided by mod_rewrite module in Apache HTTPD web server. A melhor forma de gerir a mudança de URL do site devido à circulação de diretório local é usando o mod_rewrite reorientação funcionalidade fornecida pelo módulo no Apache HTTPD servidor web. Most web hosts using Apache web server supports mod_rewrite redirect by default, and can implement this trick with ease. A maior parte dos anfitriões na web usando o servidor web Apache suporta o mod_rewrite redirecionar por padrão, e pode aplicar este truque com facilidade. Else you will need to enable and turn on mod_rewrite module. Senão você terá de ativar e girar sobre o mod_rewrite módulo.
To redirect from a subdirectory or sub-folder to root directory, add the following line of text towards the top of .htaccess file located in the sub-directory to redirect all requests into that folder will be redirected to new location (ie root) properly. Para redirecionar a partir de um subdiretório ou sub-pasta raiz do diretório, adicione a seguinte linha de texto para a parte superior do. Htaccess arquivo localizado na sub-directoria para redirecionar todos os pedidos em que a pasta será redirecionado ao novo local (ou seja, raiz) devidamente . If the .htaccess file does not exist, create one. Se o arquivo. Htaccess arquivo não existe, crie uma.
<IfModule mod_rewrite.c> <IfModule Mod_rewrite.c>
RewriteEngine On Regravar mecanismo em
RewriteBase / RewriteBase /
RewriteRule ^mylovelysite/(.*)$ /$1 [R=301,NC,L] RewriteRule ^ mylovelysite /(.*)$ / $ 1 [R = 301, NC, L]
</IfModule> </ IfModule>
Replace mylovelysite in the forth line above with the directory name on your website’s URL. Substituir mylovelysite na quarta linha acima com o nome do diretório com o URL do seu site. These line in .htaccess will redirect requests for the /mylovelysite sub-directory to the root directory by stripping “mylovelysite/” out of the URL. Estes em linha. Htaccess irá redirecionar os pedidos de / mylovelysite sub-diretório para o diretório raiz por stripping "mylovelysite /" para fora da URL. For example, a visit to http://www.domain.com/mylovelysite/index.html will get redirected to http://www.domain.com/index.html, instead of returning an 404 error. Por exemplo, uma visita à http://www.domain.com/mylovelysite/index.html será redirecionado para obter http://www.domain.com/index.html, em vez de retornar um erro 404. This is useful for visitors who come to your site via bookmark or favorite, or those find your web pages via search engines that haven’t re-crawled, re-spidered and refreshed with the new URLs in their search indexes in the initial days after moving. Isso é útil para os visitantes que chegam ao seu site através favorito ou favorita, ou aqueles encontrar suas páginas da web através de mecanismos de busca que não re-rastreado, re-spidered e atualizados com os novos URLs em seus índices na pesquisa inicial dias depois em movimento.
However, the movement will still likely to affect your site’s search engine rankings. No entanto, o movimento será ainda susceptível de afectar o seu site de pesquisa do motor rankings. The rewrite rules above make sure of 301 permanent redirect to ensure that the PageRank or ranking will pass over to the new URLs for search engine optimization (SEO). O reescrever as regras acima certifique-se de 301 redirecionamento permanente para garantir que a classificação PageRank ou passará para o novo motor de busca URLs de otimização (SEO). Until the new site structures get fully reindexed, the organic traffic from search engines may be reduced temporarily. Até que o novo site estruturas obter plenamente reindexed, o tráfego orgânico a partir de mecanismos de busca pode ser reduzida temporariamente.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Esta é uma página traduzida máquina que é fornecida "como está" sem garantia. Machine translation may be difficult to understand. A tradução automática pode ser difícil de compreender. Please refer to Por favor, consulte a original English article Inglês original article whenever possible. sempre que possível.
Share and contribute or get technical support and help at Compartilhe e contribuir ou obter suporte técnico e ajudar a My Digital Life Forums Minha vida digital Fóruns .
Related Articles Artigos relacionados
- Add Trailing Slash to the End of the URL with .htaccess Rewrite Rules Adicionar barra final para o final da URL com. Htaccess Regras de regravação
- Redirect or Rewrite to Remove Double or Multiple Slashes (//) in URL Redirecionar ou regravação de remover duplo ou múltiplo As barras (/ /) em URL
- Headdress for Mac OS X Reviews Headdress para Mac OS X opiniões
- Search Engine Spider Simulator SEO Tool Search Engine Spider simulador ferramenta SEO
- How to Change Folder Thumbnail Preview Picture in Windows Vista Explorer Como alterar a pasta thumbnail preview foto Explorer no Windows Vista
- Change My Documents Folder Default Location Path in XP and Vista Alterar pasta Meus Documentos localização padrão no caminho XP e Vista
- Create Custom Webclips Easily for iPhone Criar Custom Webclips Facilmente para iPhone
- How to Move WordPress Blog to New Domain or Location Como se deslocar para WordPress blog novo domínio ou local
- How to Bookmark A Web Page Into Firefox 3 Bookmarks Folder When Clicking on Star on Location Bar Como a ficha em uma página da web Firefox 3 pasta Favoritos Ao clicar sobre a estrela local Bar
- Edit Internet Explorer Typed URLs in Address Bar Dropdown List Editar Internet Explorer URLs digitados na barra de endereço lista suspensa



















May 8th, 2008 14:40 8 de maio de 2008 14:40
Yeah.. Yeah .. I’m thinking to move my blog from /blogs/ to the main root…ugh.. Estou a pensar deslocar de meu blog / blogs / para a principal raiz… ugh .. I’m just too scared to do it Estou muito assustada para o fazer
June 19th, 2008 19:17 19 de junho de 2008 19:17
Thanks dude i tried and it worked fine for my site Thanks dude eu tentei e funcionou muito bem para o meu site http://www.hurricanesoftwares.com but unfortunately it didn’t worked out for my other site. mas infelizmente ela não funcionou para o meu outro site. Wondering whats wrong. Então perguntando errado.
Ash
August 21st, 2008 08:43 21 de agosto de 2008 08:43
I’m kind of new to this but couldn’t you just do: Estou de novo a este tipo, mas você não pode apenas fazer:
Redirect permanent /mylovelysite/ Redirecionar permanente / mylovelysite / http://wwww.domain.com/