Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Copa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Como atualizar facilmente os URLs ao mover seu site WordPress

Nota editorial: Ganhamos uma comissão de links de parceiros no WPBeginner. As comissões não afetam as opiniões ou avaliações de nossos editores. Saiba mais sobre Processo editorial.

Deseja atualizar seus URLs depois de mover seu site WordPress?

Pode ser demorado editar manualmente cada post ou página apenas para substituir os URLs antigos do site. Felizmente, existem plug-ins do WordPress que ajudam a automatizar o processo de atualização de URLs antigos.

Neste artigo, mostraremos como atualizar facilmente os URLs ao mover seu site do WordPress.

How to Update URLs when Moving your WordPress Site

Aqui está uma lista dos tópicos que abordaremos neste guia:

Quando você precisa atualizar os URLs em seu site WordPress?

Vamos supor que você tenha movido um site do WordPress para um novo nome de domínio. Você pode então alterar o endereço do WordPress e o endereço do site visitando a página Configurações ” Geral no painel do WordPress.

Changing WordPress and site URLs

No entanto, isso não altera os URLs que você adicionou anteriormente aos seus posts e páginas. Também não altera os URLs das imagens que você adicionou ao seu site WordPress.

Alterar todos esses URLs manualmente em cada post e página do blog pode consumir muito tempo. Além disso, sempre há uma chance de você perder alguns URLs, o que pode levar a links quebrados no seu site.

Por isso, é importante atualizar seus URLs ao mover seu site WordPress.

Isso ajuda a proporcionar uma experiência de usuário tranquila para seus usuários, pois eles encontrarão facilmente a página que estão procurando. A atualização de URLs também melhora o SEO do WordPress e permite que os mecanismos de pesquisa encontrem novos conteúdos para indexação.

Por último, mas não menos importante, você também deve garantir que haja redirecionamentos 301 adequados configurados do seu domínio antigo para o novo domínio para que os usuários sejam sempre redirecionados para o local correto.

Isso é extremamente importante porque é provável que haja outros sites com links para o seu domínio antigo, incluindo publicações em mídias sociais, Google e outros.

Dito isso, vamos ver como você pode atualizar URLs de forma rápida e fácil ao migrar seu site WordPress.

Atualizar URLs após mover um site WordPress

A maneira mais fácil de atualizar links antigos em seu site é usar o plug-in Go Live Update Urls para WordPress. Ele é um plug-in gratuito para WordPress que permite atualizar URLs em seus posts, páginas, imagens, trechos, widgets e muito mais.

No entanto, certifique-se de que você tenha um backup completo do seu site WordPress antes de atualizar todos os links. Isso permitirá que você reverta facilmente caso algo dê errado durante o processo de atualização.

Em seguida, você precisará instalar e ativar o Go Live Update Urls em seu site. Para obter mais detalhes, consulte nosso guia passo a passo sobre como instalar um plug-in do WordPress.

Após a ativação, você deve navegar até Tools ” Go Live no painel de administração do WordPress.

Select core tables to update

Nessa página, você pode atualizar URLs em suas postagens, comentários, opções, dados do usuário e outras áreas do seu site, verificando as opções de tabelas centrais do WordPress no plug-in.

As tabelas principais do WordPress são onde todos os dados do seu site são organizados e armazenados. Por exemplo, uma tabela wp_comments terá todas as informações sobre comentários em seu site, juntamente com dados sobre a pessoa que está comentando.

Além disso, o plug-in Go Live Update Urls também permite que você atualize URLs antigos nos dados usados por diferentes plug-ins em seu site. No entanto, essa é uma etapa opcional, e você pode ignorá-la.

Update URLs in plugin data

Em seguida, você precisará rolar para baixo até a seção de atualização dos links antigos para os novos URLs do site.

Em seguida, insira o “URL antigo” e o “novo URL” nos respectivos campos.

Enter old and new URL

Feito isso, basta clicar no botão “Update Urls” (Atualizar URLs). O plug-in atualizará todos os URLs em seu site para o novo domínio.

Redirecionar posts e páginas após a atualização de URLs

Depois de atualizar todos os URLs do seu site, você precisará configurar redirecionamentos 301 de todo o site para o novo domínio. Isso preservará os links dos sites que estavam vinculados ao seu domínio antigo e evitará erros 404.

A maneira mais fácil de realizar um redirecionamento completo do site é usar o plug-in All in One SEO (AIOSEO). Ele é o melhor plugin de SEO para WordPress e tem a confiança de mais de 3 milhões de profissionais.

O AIOSEO oferece um poderoso gerenciador de redirecionamento que permite redirecionar URLs de sites antigos para novos URLs com apenas alguns cliques. O plug-in também ajuda a rastrear erros 404 em seu site para que você possa localizar e corrigir rapidamente quaisquer links quebrados.

Para este tutorial, usaremos a versão Pro do AIOSEO porque ela inclui o gerenciador de redirecionamento e outros recursos como mapas de sites, migalhas de pão personalizadas e marcação de esquema. Você também pode experimentar a versão gratuita do AIOSEO para começar.

A primeira coisa que você precisará fazer é instalar e ativar o plug-in AIOSEO em seu site. Se precisar de ajuda, consulte nosso guia sobre como instalar um plug-in do WordPress.

Após a ativação, você precisará ir para All in One SEO ” Dashboard no painel de administração do WordPress. Agora, clique no botão “Launch the Setup Wizard” (Iniciar o assistente de configuração) para configurar o plug-in.

AIOSEO dashboard launch setup wizard

Tudo o que você precisa fazer é seguir as etapas do assistente de configuração. Para obter mais informações, consulte nosso tutorial detalhado sobre como configurar o All in One SEO para WordPress.

1. Configuração de redirecionamentos de site completo

Esse método é muito útil quando se está mesclando dois sites separados do WordPress em um só ou se você for configurar uma nova instalação do WordPress para o novo domínio, pois ele tratará de um redirecionamento completo do site sem adicionar nenhum código.

Basta ir até All in One SEO ” Redirecionamentos na área de administração do WordPress e clicar no botão “Ativar redirecionamentos”.

Activate AIOSEO redirects

Após a ativação, você precisará navegar até a guia “Full Site Redirect” e ativar a opção “Relocate Site”.

Em seguida, você pode inserir seu novo nome de domínio na opção “Relocate to domain”.

Full site redirect

Após inserir o URL do novo domínio, não se esqueça de clicar no botão “Save Changes” (Salvar alterações) para armazenar suas configurações. O AIOSEO agora redirecionará todos os links em seu site para o novo URL.

2. Configuração de redirecionamentos de página/post individual

O AIOSEO também oferece diferentes tipos de métodos de redirecionamento que você pode usar para configurar redirecionamentos individuais de posts e páginas.

Recomendamos selecionar o tipo de redirecionamento “301 Moved Permanently”. Isso informa ao navegador que a página foi movida permanentemente para um novo destino e que você não deseja movê-la de volta.

Add redirection for old links

Depois de preencher esses detalhes, basta clicar no botão “Add Redirect”.

Você pode ver os diferentes redirecionamentos que criou rolando para baixo e visualizando os registros.

Redirection logs in AIOSEO

Você pode ver os URLs, o número de pessoas que visitaram o link, o tipo de redirecionamento que você definiu e também escolher se deseja ativar ou desativar o redirecionamento.

Na guia “Configurações”, em Redirecionamentos, você pode optar por configurar redirecionamentos no nível do servidor, que são muito mais rápidos. O método padrão é definido como PHP, que é a maneira mais fácil de redirecionar URLs antigos e não requer nenhuma configuração no lado do servidor.

Mas você pode selecionar “Servidor da Web” como método de redirecionamento e, em seguida, escolher Apache ou NGINX como seu servidor da Web. Não recomendamos esse método para iniciantes, pois ele exige conhecimento técnico.

Select the Redirect Method

Quando você atualiza seus URLs para um novo domínio, também é essencial ficar de olho nos links quebrados. Esses são links que não existem mais e mostram uma página de erro 404. Eles podem ocorrer se algum URL não for atualizado corretamente.

Com o AIOSEO, é muito fácil rastrear e corrigir páginas de erro 404 usando o Redirection Manager.

Para começar, vá até All in One SEO ” Redirecionamentos no painel do WordPress.

Em seguida, clique na guia “Settings” (Configurações) em Redirects e, em seguida, clique no botão de alternância para ativar as opções “404 Logs” (Registros 404) e “Redirect Logs” (Registros de redirecionamento).

Enable 404 logs

Usando o AIOSEO, você pode escolher o período de tempo para manter os registros de erros 404. Recomendamos que você escolha um período não superior a um mês para obter um desempenho ideal e sem problemas do WordPress.

Depois de ativar essas opções, clique no botão “Save Changes” (Salvar alterações) na parte superior da página para armazenar suas configurações.

Agora você deve ver uma nova guia “404 Logs” aparecer em Redirecionamentos no AIOSEO. Nessa guia, o plug-in rastreará e mostrará as páginas de erro 404 em seu website.

Um aspecto importante a ser observado é que, inicialmente, você não verá nenhum dado na guia 404 Logs. O plug-in só começará a registrar links quebrados depois que você ativar as configurações.

No entanto, depois que a configuração estiver ativa por algum tempo, vá em frente e clique na guia “404 Logs”. Você verá uma lista de links quebrados na coluna URL, o número de visitas na coluna Hits e a data do último acesso.

Click 404 logs menu option

Para corrigir qualquer link quebrado, basta clicar no botão “Add Redirect” (Adicionar redirecionamento) para o respectivo URL. O AIOSEO agora mostrará opções para configurar o redirecionamento para o URL de erro 404.

Você precisará inserir o novo link no campo “Target URL” (URL de destino) e selecionar “301 Moved Permanently” (301 movido permanentemente) como o tipo de redirecionamento no menu suspenso.

Add redirect for your broken link

Em seguida, clique no botão “Add Redirect” para corrigir o link quebrado em seu site.

Para verificar se o redirecionamento está funcionando, basta visitar o URL antigo. Se você for redirecionado para o novo URL, isso significa que as páginas de erro 404 foram corrigidas com êxito.

Nossos melhores guias sobre como mover seu site WordPress

Agora que você já sabe como atualizar URLs ao mudar para um novo nome de domínio, talvez queira ver alguns de nossos outros guias sobre como mudar seu site:

Esperamos que este artigo tenha ajudado você a aprender como atualizar URLs ao mover seu site WordPress. Talvez você também queira ver nosso guia sobre como obter um certificado SSL gratuito ou nossas escolhas de especialistas sobre os melhores serviços de marketing por e-mail para pequenas empresas.

Se você gostou deste artigo, inscreva-se em nosso canal do YouTube para receber tutoriais em vídeo sobre o WordPress. Você também pode nos encontrar no Twitter e no Facebook.

Divulgação: Nosso conteúdo é apoiado pelo leitor. Isso significa que, se você clicar em alguns de nossos links, poderemos receber uma comissão. Veja como o WPBeginner é financiado, por que isso é importante e como você pode nos apoiar. Aqui está nosso processo editorial.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

O kit de ferramentas definitivo WordPress

Obtenha acesso GRATUITO ao nosso kit de ferramentas - uma coleção de produtos e recursos relacionados ao WordPress que todo profissional deve ter!

Reader Interactions

127 ComentáriosDeixe uma resposta

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. mohadese esmaeeli says

    I know that if, for any reason, I decide to change my site’s domain, I need to consider some crucial points to preserve its SEO. How long does it take for our links to return to their previous positions in Google search results?

    • WPBeginner Support says

      There is no guaranteed timeframe for your page rankings, following the steps from this guide will help with minimizing the time the rankings may have trouble.

      Administrador

  3. Ben Jamir says

    I installed activated, unfortunately, it failed to change the images URL. After switching my site to https, i had to change my site address to a non-www
    Example : from http:www.example.com to https:example.com

    SSL is properly activated, my site is up but most of the images still points to the www version of my site.

    The plugin report was zero changes done for all attachment files.

    Any idea or advice will be helpful

    Thank you

    • WPBeginner Support says

      You would want to ensure the options were checked below the url and that the url you entered was correct as well for the most common reasons

      Administrador

  4. Ben Jamir says

    I am impressed with all the positive comments. I am planning to install and try this plugin for changing my image URLs.
    One thing I want to know is that if the plugin succeeds and does what it’s supposed to do, do we need to keep the plugin installed and activated?
    Once the job is done can we deactivate the plugin?
    Will deactivating the plugin reverts the changes it made ???

    Thank you

    • WPBeginner Support says

      You can delete Velvet Blues after it has updated your URLs without them being reverted

      Administrador

  5. Caroline says

    I tried Velvet Blues Update URLs, but it doesn’t work in custom fields. Is there any other way to update custom fields?

    • WPBeginner Support says

      Did you check the option for it to update custom fields? You may want to reach out to the plugin’s support if that option isn’t having it update your fields

      Administrador

  6. Abdessamad says

    Thanx for this article it was very helpful, I have a question though, Is there a way to automatically remove the old urls from my database ?

    • WPBeginner Support says

      It would depend on what you mean, this method should handle links in posts and pages but in general, if you have your old url in plugins we do not have a recommended method at the moment.

      Administrador

  7. Linda says

    Thanks for telling us about this plugin. Haven’t tried it yet, but will soon. I was working away on the subdomain we’re using to create our new site, and adding links when I suddenly thought, “Bet these links don’t get updated automatically. Do I need to record every one I’ve created so I can update it later?”

    So glad to know there’s a plugin that will do most of this for us.j

    Thank you,

    Linda

    • WPBeginner Support says

      Well done, you can certainly update your links manually, the plugin is an option for those who don’t want to manually go through all of their content on their site to update the links :)

      Administrador

  8. Dionne says

    Hi there,

    I managed to update all textlinks using broken link checker. But buttons (wp bakery) are not affected. Will this plugin update the link in buttons too?

  9. Nidhi says

    Hey will it change all my Quicklinks in each page go my footer. I have different Quicklinks and buttons to the specific pages and all the links needs to be changed. SO will it work ???

    Also my wordpress website is under wordpress folder so the link also mention the wordpress folder on the website If I will change the folder name and then put a link in
    old saying “www.example.test/wordpress” and
    new saying “www.newsite.com/renamefoldername”

    SO will this work or do I manually have to change the link for each pages

    • WPBeginner Support says

      Depending on how the quick links were created it likely will not update those but it will be able to update the folder.

      Administrador

  10. Naga Kishore says

    The same issue happened on one of my client website after migration.

    when i am trying to add a new image in the slider it is not with updating the new urls & showing 404 errors.

    After using the plugin Velvet Blues Update URLs the issue is resolved. Thanks for sharing the article.

  11. Rob says

    Hey I’m having an issue,
    Whats happened is I initially changed my site URL. Now whats happened is that whenever someone clicks on my blog name (when they see my comments on another post) they get a broken link to the old URL. If anyone knows how to fix this that would be great.

    • WPBeginner Support says

      You may want to try resaving your new url and resaving your permalinks in case that was cached somewhere

      Administrador

  12. Jp says

    Hi,

    Velvet blues worked great for regular images in posts but not featured images. Do you know about a plugin that supports changing featured images URLs? I’m storing images in a different server in the new version of my site.

    • WPBeginner Support says

      It should also update featured images, you may want to reach out to the plugin’s support if it is not updating properly.

      Administrador

  13. John Doe says

    Does not work for me. However, I may be trying to do something this plugin does not support – moving from non-www to www subdomain.

  14. Asrar says

    Hi Everyone
    i want to upload my local wordpress site to online, but when i download all the files and want to change the links (localhost/websitename/ ) there is no such links available except two links. As there must be many lins to be changes bu i dont see . Why the links are missing ?
    anyone knows ?

  15. Yogi says

    The Velvet Blues Update URLs plugin is excellent. I want to share my experience with it. After i did my URL change with it. I still see the error on opening all post. I solved it by going to “Settings > Permalinks” section and then saved my permalinks once more by clicking the “Save Changes” button. This solved my problem and will also solve yours if you still get some error.

  16. Jhavinder says

    I am using the same domain but i have changed my hosting. After that my all images in post are not showing. How can i fix this problem.

  17. Shawn Rebelo says

    Velvet blues is great, but misses one thing. Does not change URL’s in options if URL’s are there. Say for Custom CSS. Also, anyone have issues of you changing the URL’s, see changes in the DB. But when you go edit the page, they are still say http, when they should be https? Seems to only happen with image URL’s.

  18. jan says

    I used this wonderful plugin in the past, always worked fine. But this time it only changed the full URL links, not the internal links that don’t include the full URL. Any ideas on how to fix this?

  19. Blessing Mashoko says

    I had the same issue I just changed my permalink settings to “plain” and changed back to the permalink setting I was using and somehow it works.

  20. Priscilla says

    The plugin hasn’t been supported in over 1 year and is untested with WP version 4.9.1. Nevertheless, I gave it a try, but unsurprisingly, it didn’t work, giving a MySQL server error. So much for a once very good plugin that the developer decides to abandon!

  21. Kokila says

    Post update of URL, images are not showing up properly in wordpress admin site. Please comment on this and also URL update didn’t happen for images on Media folder

  22. Gautam Sharma says

    After migrating from local to server, I’m getting 404-File not found error. Only my Home Page is loading, rest are not working, I have changed the permalinks also! Please help…

  23. Emma Booth says

    Is there anyway I can avoid links from social media breaking once I have done a re-direct?

    I’m trying to re-direct from a wordpress.com blog to a blog on a new domain on wordpress.org, however I’m concerned previous links in tweets and linkedIn posts will break….any way to avoid this?)

  24. Neha Prajapati says

    I changed my server keeping same web URL. and properly configured.
    But why my all old post r showing in google search with page not found.
    What to do??

  25. Peter says

    I use Velvet Blues with very good results. However, it is important to note that VB will not change URL in widgets or if there are URLs in your CSS code. These will need to be manually changed.

  26. Jeremy says

    In response to ADITYA’s comment about this being a substitute for 301 redirects.

    I would say that a find and replace plugin is NOT a substitute for 301 redirects. 301 redirects are still valuable from an SEO standpoint, as well as for users who may have bookmarked or are accustomed to using your old domain.

    Just using this plugin would result in your users hitting an old site that is no longer being maintained or a site that’s been taken offline.

    On a personal note, I definitely recommend Migrate DB Pro for this type of activity. It’s worth the money, if you’re doing local development.

  27. Jennifer says

    Hi,

    Does this plug in also work for updating links that are embedded inside tables that I created with TablePress? I also have a number of URLs as part of image descriptions for photos that I added using FooGallery, and i assume that these are stored inside the database, rather than in the HTML for the pages – is Velvet Blues able to update these as well, or do I need a different plug in for that task? My site (which I am going to move from its current directory to a subdirectory of my site that I want to use for an add-on domain) contains about 13.500 images and 500 tables, and it would be extremely tedious to check every single one for links, and then manually replace them with the new URL.

    Thanks.

  28. Vidy says

    Cool plugin and great tutorial, I’ve just migrate my domain and I have 300 post. I searched exactly the plugin u reviewed. Thanks for your help. I didn’t needed to replace my internal link one by one.

  29. Michelle Z. says

    Question: I updated my theme, and the blogroll is now on a secondary page, when it used to be on the homepage. So I have the same url but different path. Check it out:

    Old Link (we want to maintain these):

    New Link:

    I tried adjusting the permalinks but its not working…yet. Any ideas?

    Thanks so much!

  30. Sourabh Saraf says

    Thanks for the wonderful tut , i usually go for backupbuddy for my migration but sometimes due to server limitations backupbuddy doesnt work . This trick comes handy everytime i manually migrate wordpress and works like a charm .
    cheers
    Sourabh

  31. Sonali says

    My old and new site urls are the same since I migrated my site content from wordpress.com to wordpress.org. Not sure how to use this and get those errors fixed…Please advice! Thanks!

  32. Melissa says

    I used this plugin after migrating from Blogger to WordPress. None of my image URLs are updating…so none of my images are currently showing on my blog (www.fitchocoholic.com). Can anyone help me with this? I’m freaking out!

  33. jatinder says

    I installed this plugin and is working perfectly.

    But my question is, why doest it work on the content build using Content Builder plugins like Visual composer or Muffin tool. i have certain hard-coded links it does change those link.

    Any comments??

    • Josh says

      Hi Jatinder.
      The reason this plugin doesn’t work for content inside Visual Composer is because Visual Composer stores the links in a strange way. If you click on “Classic Mode” in Visual Composer you’ll see that links don’t look like proper URLs.

      For example, I have a VC button that points to this link:

      example.com/services/adwords/

      But in Classic Mode I can see that the link looks like this:
      http%3A%2F%2Fexample.com%2Fservices%2Fadwords%2F

      So this will be why Velvet Blues doesn’t change these links.

      To fix the content, without having to manually edit every link, you’ll need to run another search and replace plugin and search for the urls using this structure.

      • Jeremy says

        Good tip, ive been trying to work this out for a while now, didn’t even occur to me that the url would have been done like that. Hooray.

  34. marcelo araujo says

    hi, cool post. some media does not change. specifically the media that is added in theme options. any command to change all urls in all database? i change mine from .org/site for .org.br/site
    tks.

Deixe uma resposta

Obrigado por deixar um comentário. Lembre-se de que todos os comentários são moderados de acordo com nossos política de comentários, e seu endereço de e-mail NÃO será publicado. NÃO use palavras-chave no campo do nome. Vamos ter uma conversa pessoal e significativa.