{"id":4393,"date":"2017-09-25T16:38:00","date_gmt":"2017-09-25T16:38:00","guid":{"rendered":"http:\/\/www.deuzebranaweb.com.br\/?p=4393"},"modified":"2017-09-25T16:38:00","modified_gmt":"2017-09-25T16:38:00","slug":"pt-brmudando-o-url-do-site-wordpress-migrar","status":"publish","type":"post","link":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/2017\/09\/25\/pt-brmudando-o-url-do-site-wordpress-migrar\/","title":{"rendered":"pt-br:Mudando o URL do Site WORDPRESS migrar"},"content":{"rendered":"<div id=\"pagebody\">\n<div class=\"wrapper\">\n<div id=\"bodyContent\" class=\"col-10\">\n<div id=\"mw-content-text\" class=\"mw-content-ltr\" dir=\"ltr\" lang=\"en\">\n<h2><span id=\"Editando_o_arquivo_wp-config.php\" class=\"mw-headline\">Editando o arquivo\u00a0<tt>wp-config.php<\/tt><\/span><\/h2>\n<p>\u00c9 poss\u00edvel corrigir a URL do site usando este recurso: Adicione essas duas linhas no seu\u00a0<tt>wp-config.php<\/tt>, onde &#8220;exemplo.com&#8221; \u00e9 o novo local do seu site.<\/p>\n<pre>define('WP_HOME','<a class=\"external free\" href=\"http:\/\/exemplo.com%27\/\" rel=\"nofollow\">http:\/\/exemplo.com'<\/a>);\ndefine('WP_SITEURL','<a class=\"external free\" href=\"http:\/\/exemplo.com%27\/\" rel=\"nofollow\">http:\/\/exemplo.com'<\/a>);\n<\/pre>\n<p>Essa n\u00e3o \u00e9 necessariamente a melhor solu\u00e7\u00e3o, \u00e9 apenas codificar os valores no pr\u00f3prio site. Voc\u00ea n\u00e3o ser\u00e1 capaz de edit\u00e1-los na p\u00e1gina de configura\u00e7\u00f5es gerais quando se usa este m\u00e9todo.<\/p>\n<h2><span id=\"Editando_o_arquivo_functions.php\" class=\"mw-headline\">Editando o arquivo\u00a0<tt>functions.php<\/tt><\/span><\/h2>\n<p>Voc\u00ea pode mudar o URL do site editando o arquivo\u00a0<tt>functions.php<\/tt>\u00a0do tema atual, ele adicionar\u00e1 a op\u00e7\u00e3o de nova URL ao seu arquivo de configura\u00e7\u00e3o.<\/p>\n<p>1. Adicione esta duas linhas, logo ap\u00f3s a linha &#8220;&lt;?php&#8221; .<\/p>\n<pre>update_option('siteurl','<a class=\"external free\" href=\"http:\/\/exemplo.com\/blog'\" rel=\"nofollow\">http:\/\/exemplo.com\/blog'<\/a>);\nupdate_option('home','<a class=\"external free\" href=\"http:\/\/exemplo.com\/blog'\" rel=\"nofollow\">http:\/\/exemplo.com\/blog'<\/a>);\n<\/pre>\n<p>2. Acesse a p\u00e1gina de administra\u00e7\u00e3o atualizando algumas vezes, at\u00e9 a p\u00e1gina carregar normalmente. Visite a p\u00e1gina e veja algumas p\u00e1ginas.<\/p>\n<p>3. Agora, remova as linhas que adicionou ao arquivo.<\/p>\n<p>Se n\u00e3o houver\u00a0<tt>functions.php<\/tt>\u00a0no tema: Criar um novo arquivo de texto chamado\u00a0<tt>functions.php<\/tt>. Edite com o notepad e adicione este texto, usando seu pr\u00f3prio URL, em vez de exemplo.com:<\/p>\n<pre>&lt;?php\nupdate_option('siteurl','<a class=\"external free\" href=\"http:\/\/exemplo.com\/blog'\" rel=\"nofollow\">http:\/\/exemplo.com\/blog'<\/a>);\nupdate_option('home','<a class=\"external free\" href=\"http:\/\/exemplo.com\/blog'\" rel=\"nofollow\">http:\/\/exemplo.com\/blog'<\/a>);\n<\/pre>\n<p>Fa\u00e7a o Upload para seu diret\u00f3rio do tema, em seguida, fa\u00e7a como indicado acima e remova o arquivo depois.<\/p>\n<h2><span id=\"M.C3.A9todo_de_reloca.C3.A7.C3.A3o\" class=\"mw-headline\">M\u00e9todo de reloca\u00e7\u00e3o<\/span><\/h2>\n<p>WordPress suporta um m\u00e9todo de transfer\u00eancia autom\u00e1tica, que vai descobrir e atualizar esses valores automaticamente para voc\u00ea. Este m\u00e9todo \u00e9 destinado a ser uma ajuda r\u00e1pida, quando fizer a realoca\u00e7\u00e3o de um site de um servidor para outro.<\/p>\n<p>Para us\u00e1-lo:<\/p>\n<p>1. Edite o arquivo<tt>wp-config.php<\/tt><\/p>\n<p>2. Depois de &#8220;define&#8221; adicione:<\/p>\n<pre>define('RELOCATE',true);\n<\/pre>\n<p>3. Visite a p\u00e1gina\u00a0<tt>wp-login.php<\/tt>\u00a0no navegador.<\/p>\n<p>4. Fa\u00e7a Login normalmente.<\/p>\n<p>Quando RELOCATE \u00e9 definide como\u00a0<tt>true<\/tt>, o URL do site ser\u00e1 atualizado automaticamente para qualquer caminho que voc\u00ea est\u00e1 usando para acessar a tela de login. Isso vai ficar fazer a se\u00e7\u00e3o admin em funcionar na nova URL, mas n\u00e3o vai corrigir qualquer outra parte da instala\u00e7\u00e3o. Estas outras ainda ter\u00e1 de alterar manualmente.<\/p>\n<p>Voc\u00ea deve remover a linha adicional depois que o site est\u00e1 instalado e funcionando. N\u00c3O deixe ele habilitado.<\/p>\n<h2><span id=\"Mudando_o_URL_diretamente_no_Banco_de_Dados\" class=\"mw-headline\">Mudando o URL diretamente no Banco de Dados<\/span><\/h2>\n<p>Se sabe acessar o\u00a0<a title=\"pt-br:phpMyAdmin\" href=\"https:\/\/codex.wordpress.org\/pt-br:phpMyAdmin\">phpMyAdmin<\/a>\u00a0do servidor, ent\u00e3o voc\u00ea pode editar estes valores diretamente para ter seu site funcionando novamente.<\/p>\n<p>1.\u00a0<a title=\"pt-br:Backups do Banco de Dados\" href=\"https:\/\/codex.wordpress.org\/pt-br:Backups_do_Banco_de_Dados\">Fa\u00e7a Backup do seu banco de dados<\/a>\u00a0e salve uma c\u00f3pia no seu disco r\u00edgido. 2. Fa\u00e7a login no\u00a0<a title=\"pt-br:phpMyAdmin\" href=\"https:\/\/codex.wordpress.org\/pt-br:phpMyAdmin\">phpMyAdmin<\/a>. 3. Clique em\u00a0<b>Banco de Dados<\/b>. 4 Uma lista de todos os bancos de dados aparecer\u00e1. Escolha o bando de dados do seu WordPress.<\/p>\n<div>\n<div><a class=\"image\" href=\"https:\/\/codex.wordpress.org\/File:phpMyAdmin---02.png\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/codex.wordpress.org\/images\/thumb\/5\/57\/phpMyAdmin---02.png\/750px-phpMyAdmin---02.png\" srcset=\"\/images\/5\/57\/phpMyAdmin---02.png 1.5x, \/images\/5\/57\/phpMyAdmin---02.png 2x\" alt=\"phpMyAdmin---02.png\" width=\"750\" height=\"382\" \/><\/a><\/div>\n<div>Tela do phpMyAdmin, do lado esquerdo ficam as tabelas de v\u00e1rios aplicativos, escolha a do seu WordPress<\/div>\n<\/div>\n<p>5. Todas as tabelas do seu banco de dados aparece na tela. 6. Na lista a esquerda, procure por\u00a0<b><tt>wp_options<\/tt><\/b>.\u00a0<b>Nota:<\/b>\u00a0O prefixo da tabela pode ser diferente se voc\u00ea escolheu outros quando estava instalando manualmente.<\/p>\n<div>\n<div>\n<div class=\"floatleft\"><a class=\"image\" href=\"https:\/\/codex.wordpress.org\/File:Alt-raizWP-st1.png\"><img decoding=\"async\" src=\"https:\/\/codex.wordpress.org\/images\/c\/cd\/Alt-raizWP-st1.png\" alt=\"Alt-raizWP-st1.png\" width=\"199\" height=\"287\" \/><\/a><\/div>\n<\/div>\n<div>Clique no item wp_options<\/div>\n<\/div>\n<p>7. A tela mostrar\u00e1 uma lista de todos os campos na tabela\u00a0<b><tt>wp_options<\/tt><\/b>. 8. No campo\u00a0<b><tt>option_name<\/tt><\/b>, procure por\u00a0<b><tt>siteurl<\/tt><\/b>.<\/p>\n<div>\n<div><a class=\"image\" href=\"https:\/\/codex.wordpress.org\/File:Alt-raizWP-st3.png\"><img decoding=\"async\" src=\"https:\/\/codex.wordpress.org\/images\/f\/f4\/Alt-raizWP-st3.png\" alt=\"Alt-raizWP-st3.png\" width=\"800\" height=\"125\" \/><\/a><\/div>\n<div>Clique no item\u00a0<tt>siteurl<\/tt><\/div>\n<\/div>\n<p>9. Ap\u00f3s localizar o\u00a0<b><tt>siteurl<\/tt><\/b>, clique no \u00edcone do l\u00e1pis para editar o endere\u00e7o. 10. A tela\u00a0<b>Editar Campo<\/b>\u00a0aparecer\u00e1. 11. Coloque no\u00a0<b><tt>option_value<\/tt><\/b>\u00a0o novo endere\u00e7o do blog, os demais campos deixe como est\u00e1 e clique em\u00a0<b>Executar<\/b>.\u00a0<a class=\"image\" href=\"https:\/\/codex.wordpress.org\/File:Alt-raizWP-st4.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/codex.wordpress.org\/images\/1\/14\/Alt-raizWP-st4.png\" alt=\"Alt-raizWP-st4.png\" width=\"696\" height=\"401\" \/><\/a>\u00a012. Voc\u00ea retornar\u00e1 para a tabela\u00a0<b><tt>wp_options<\/tt><\/b>. 13. Procure pelo campo\u00a0<b><tt>home<\/tt><\/b>\u00a0na tabela e clique no l\u00e1pis para\u00a0<b>Editar Campo<\/b>.\u00a0<b>Nota<\/b>\u00a0H\u00e1 v\u00e1rias p\u00e1gina dentro da tebela\u00a0<tt>wp_options<\/tt>. Procure pelo s\u00edmbolo\u00a0<tt>&gt;<\/tt>\u00a0para navegar por ela.<a class=\"image\" href=\"https:\/\/codex.wordpress.org\/File:Alt-raizWP-st6.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/codex.wordpress.org\/images\/8\/8c\/Alt-raizWP-st6.png\" alt=\"Alt-raizWP-st6.png\" width=\"995\" height=\"28\" \/><\/a>14. Novamente, no campo\u00a0<b><tt>option_value<\/tt><\/b>, mude a URL para o novo lugar. 15. Verifique se est\u00e1 correto e clique em\u00a0<b>Executar<\/b>.<\/p>\n<table>\n<tbody>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/codex.wordpress.org\/images\/thumb\/a\/aa\/cb-help.png\/60px-cb-help.png\" srcset=\"\/images\/thumb\/a\/aa\/cb-help.png\/90px-cb-help.png 1.5x, \/images\/thumb\/a\/aa\/cb-help.png\/120px-cb-help.png 2x\" alt=\"cb-help.png\" width=\"60\" height=\"60\" \/><\/td>\n<td>\n<div>ARTIGO PARCIALMENTE TRADUZIDO OU QUE PRECISA DE TRADU\u00c7\u00c3O<\/div>\n<div>Este documento est\u00e1\u00a0<b>parcialmente traduzido<\/b>\u00a0ou\u00a0<b>precisa ser traduzido<\/b>. Toda a tradu\u00e7\u00e3o \u00e9 feita por volunt\u00e1rios e voc\u00ea pode ser um deles.<br \/>\n<a title=\"pt-br:Codex:Introdu\u00e7\u00e3o\" href=\"https:\/\/codex.wordpress.org\/pt-br:Codex:Introdu%C3%A7%C3%A3o\">PARTICIPAR<\/a>\u00a0\u25aa\u00a0<a title=\"Category:Parcialmente Traduzido\" href=\"https:\/\/codex.wordpress.org\/Category:Parcialmente_Traduzido\">ARTIGOS PARA TRADUZIR<\/a>\u00a0\u25aa\u00a0<a class=\"external text\" href=\"http:\/\/br.forums.wordpress.org\/forum\/traducao\" rel=\"nofollow\">F\u00d3RUM DE SUPORTE<\/a>\u00a0\u25aa\u00a0<a title=\"Category:Codex-pt\" href=\"https:\/\/codex.wordpress.org\/Category:Codex-pt\">TODOS OS ARTIGOS<\/a><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span id=\"Mudan.C3.A7a_de_Nome_de_Dom.C3.ADnio\" class=\"mw-headline\">Mudan\u00e7a de Nome de Dom\u00ednio<\/span><\/h2>\n<div>\n<p>Tenha cuidado com isso! Fa\u00e7a backups regularmente.\u00a0<a title=\"pt-br:Backups do Banco de Dados\" href=\"https:\/\/codex.wordpress.org\/pt-br:Backups_do_Banco_de_Dados\">Backups do Banco de Dados<\/a>\u00a0A\u00e7\u00f5es no banco de dados s\u00e3o irreverss\u00edveis. N\u00e3o h\u00e1\u00a0<i>desfazer<\/i>. As a\u00e7\u00f5es s\u00e3o permanentes.<\/p>\n<\/div>\n<p>Quando mover de dom\u00ednio, \u00e9 preciso\u00a0<a title=\"pt-br:Restaurando Banco de dados a partir do Backup\" href=\"https:\/\/codex.wordpress.org\/pt-br:Restaurando_Banco_de_dados_a_partir_do_Backup\">Restaurar Banco de dados a partir do Backup<\/a>. Em seguida, voc\u00ea precisa carregar seus arquivos para sua nova localiza\u00e7\u00e3o.<\/p>\n<p><b>Neste ponto, o seu blog n\u00e3o vai funcionar.<\/b><\/p>\n<ol>\n<li><b>Banco de Dados<\/b>\n<ol>\n<li>Siga o guia acima para alterar a informa\u00e7\u00e3o no banco de dados.<\/li>\n<\/ol>\n<\/li>\n<li><b>Entradas do Banco de Dados<\/b>\n<ol>\n<li>Fa\u00e7a Log no\u00a0<a title=\"pt-br:phpMyAdmin\" href=\"https:\/\/codex.wordpress.org\/pt-br:phpMyAdmin\">phpMyAdmin<\/a>.<\/li>\n<li><a title=\"pt-br:Backups do Banco de Dados\" href=\"https:\/\/codex.wordpress.org\/pt-br:Backups_do_Banco_de_Dados\">Backups do Banco de Dados<\/a>\u00a0e salve uma c\u00f3pia.<\/li>\n<li>Fa\u00e7a Login no [[[pt-br:phpMyAdmin|phpMyAdmin]].<\/li>\n<li>Clique no link\u00a0<b>Banco de Dados<\/b>.<\/li>\n<li>Uma lista dos bancos de dados ser\u00e1 exibida. Escolha o seu banco de dados do WordPress.<\/li>\n<li>Procure o nome da tabela no seu banco de dados usado para armazenar suas informa\u00e7\u00f5es e postagens. Normalmente\u00a0<tt>wp_posts<\/tt>.<\/li>\n<li>Clique no \u00edcone\u00a0<b>Browse<\/b>, abra a tabela\u00a0<tt>wp_posts<\/tt>.<\/li>\n<li>Look for the field that holds your post &#8220;guid&#8221;. It is usually called\u00a0<tt>guid<\/tt>, but it may have been changed. Write it down.<\/li>\n<li>Click the tab at the top for\u00a0<b>SQL<\/b>.<\/li>\n<li>Usando a informa\u00e7\u00e3o you wrote down from above and the old and new URL addresses you wish to\u00a0<b>update<\/b>\u00a0or search and replace within your database, type in the following (<b>Cuidado<\/b>):<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<pre>UPDATE wp_posts SET guid = REPLACE (\nguid,\n'http:\/\/exemploantigositeurl.com',\n'http:\/\/exemplonovositeurl.com');<\/pre>\n<ol>\n<li>\n<ol>\n<li>Make sure that the names of\u00a0<tt>wp_posts<\/tt>\u00a0and\u00a0<tt>post_content<\/tt>\u00a0match the tables and fields within your database. Change them if not.<\/li>\n<li>Ensure that the ONLY content you want to change are within the little\u00a0<b>single &#8216;quotes&#8217;\u00a0<\/b>. Make sure EVERYTHING is spelled right and that you are sure this is correct.<\/li>\n<li>Review everything within the\u00a0<b>SQL<\/b>\u00a0input box again. Make sure it is correct. There are no second changes when you take the next action. The change is permanent.<\/li>\n<li>When you are sure, click\u00a0<b>Go<\/b>.<\/li>\n<li>At the top of the screen will be generated a list of how many of the tables and fields have been changed.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h2><span id=\"Prefixos_de_Tabelas\" class=\"mw-headline\">Prefixos de Tabelas<\/span><\/h2>\n<p>Como muitos administradores do WordPress, voc\u00ea pode estar executando v\u00e1rios dom\u00ednios do seu WordPress fora de uma instala\u00e7\u00e3o com v\u00e1rios\u00a0<tt>wp-config.php\u00a0<\/tt>. Muitos desses hacks envolvem configura\u00e7\u00e3o de prefixos de tabela din\u00e2mica e se voc\u00ea acabar alterando o prefixo de tabela,<i>deve<\/i>\u00a0atualizar v\u00e1rias entradas na tabela\u00a0<i>prefix_<\/i>\u00a0tamb\u00e9m.<\/p>\n<p>Como na se\u00e7\u00e3o acima, lembre-se que as mudan\u00e7as s\u00e3o permanentes e SQL que voc\u00ea deve fazer backup do primeiro banco de dados:<\/p>\n<pre>UPDATE `newprefix_usermeta` SET `meta_key` = REPLACE( `meta_key` , 'oldprefix_', 'newprefix_' );<\/pre>\n<h2><span id=\"Mudando_os_Arquivos_de_Modelo\" class=\"mw-headline\">Mudando os Arquivos de Modelo<\/span><\/h2>\n<p>In your\u00a0<a title=\"pt-br:Usando Temas\" href=\"https:\/\/codex.wordpress.org\/pt-br:Usando_Temas\">Usando Temas<\/a>, open each template file and search for any manually entered references to your old domain name and replace it with the new one. Look for specific hand coded links you may have entered on the various template files such as the\u00a0<tt>sidebar.php<\/tt>and\u00a0<tt>footer.php<\/tt>.<\/p>\n<p>WordPress uses a template tag called\u00a0<tt><a class=\"mw-redirect\" title=\"Template Tags\/bloginfo\" href=\"https:\/\/codex.wordpress.org\/Template_Tags\/bloginfo\">bloginfo()<\/a><\/tt>\u00a0to automatically generate your site address from information entered in your\u00a0<a class=\"mw-redirect\" title=\"Administration Panels\" href=\"https:\/\/codex.wordpress.org\/Administration_Panels\">Administration<\/a>\u00a0&gt;\u00a0<a class=\"mw-redirect\" title=\"Administration Panels\" href=\"https:\/\/codex.wordpress.org\/Administration_Panels#General\">Settings<\/a>\u00a0&gt;\u00a0<a class=\"mw-redirect\" title=\"Settings General SubPanel\" href=\"https:\/\/codex.wordpress.org\/Settings_General_SubPanel\">General<\/a>\u00a0panel. The tag in your template files will not have to be modified.<\/p>\n<h2><span id=\"Mudando_o_arquivo_Config\" class=\"mw-headline\">Mudando o arquivo Config<\/span><\/h2>\n<p>You will need to update your WordPress configuration file if your database has moved or changed in certain ways.<\/p>\n<ol>\n<li>You will only need to modify the config file if:\n<ol>\n<li>your database has moved to another server and is not running on your\u00a0<tt>localhost<\/tt><\/li>\n<li>you have renamed your database<\/li>\n<li>you have changed the database user name<\/li>\n<\/ol>\n<\/li>\n<li>&#8220;&#8216;Make a backup copy of your\u00a0<tt>wp-config.php<\/tt>\u00a0file.'&#8221;<\/li>\n<li>Open the\u00a0<tt>wp-config.php<\/tt>\u00a0file in a\u00a0<a title=\"Glossary\" href=\"https:\/\/codex.wordpress.org\/Glossary#Text_editor\">text editor<\/a>.<\/li>\n<li>Review its contents. In particular, you are looking for the\u00a0<a class=\"external text\" href=\"http:\/\/codex.wordpress.org\/Editing_wp-config.php#Database_host\" rel=\"nofollow\">database host entry<\/a>.<\/li>\n<li>Save the file.<\/li>\n<\/ol>\n<p>At this point, your WordPress blog should be working.<\/p>\n<h2><span id=\"Verifique_o_Perfil\" class=\"mw-headline\">Verifique o Perfil<\/span><\/h2>\n<ol>\n<li>In your\u00a0<a class=\"mw-redirect\" title=\"Administration Panels\" href=\"https:\/\/codex.wordpress.org\/Administration_Panels\">Administration Panels<\/a>\u00a0go to\u00a0<a class=\"mw-redirect\" title=\"Administration Panels\" href=\"https:\/\/codex.wordpress.org\/Administration_Panels#General\">Settings<\/a>\u00a0&gt;\u00a0<a class=\"mw-redirect\" title=\"Settings General SubPanel\" href=\"https:\/\/codex.wordpress.org\/Settings_General_SubPanel\">General<\/a>\u00a0. Here you will verify that the changes you made in\u00a0<a class=\"external text\" href=\"http:\/\/codex.wordpress.org\/Changing_The_Site_URL#Changing_the_URL\" rel=\"nofollow\">Changing the URL<\/a>above, are correct.<\/li>\n<li>Verify that the reference in your\u00a0<b>WordPress URL<\/b>\u00a0contains the new address.<\/li>\n<li>Verify that the reference in your &#8220;Blog URL&#8221; contains the new address.<\/li>\n<li>If you have made changes, click\u00a0<b>Save Changes<\/b>.<\/li>\n<\/ol>\n<h2><span id=\"Mudando_o_arquivo_.htaccess\" class=\"mw-headline\">Mudando o arquivo .htaccess<\/span><\/h2>\n<p>After changing the information in your\u00a0<a class=\"mw-redirect\" title=\"Administration Panels\" href=\"https:\/\/codex.wordpress.org\/Administration_Panels\">Administration<\/a>\u00a0&gt;\u00a0<a class=\"mw-redirect\" title=\"Administration Panels\" href=\"https:\/\/codex.wordpress.org\/Administration_Panels#General\">Settings<\/a>\u00a0&gt;\u00a0<a class=\"mw-redirect\" title=\"Settings General SubPanel\" href=\"https:\/\/codex.wordpress.org\/Settings_General_SubPanel\">General<\/a>\u00a0panel, you will need to update your\u00a0<tt>.htaccess<\/tt>\u00a0file if you are using\u00a0<a title=\"Using Permalinks\" href=\"https:\/\/codex.wordpress.org\/Using_Permalinks\">Permalinks<\/a>\u00a0or any rewrites or redirects.<\/p>\n<ol>\n<li><b>Make a backup copy of your\u00a0<tt>.htaccess<\/tt>\u00a0file.<\/b>\u00a0This is not a recommendation but a requirement.<\/li>\n<li>Open the\u00a0<tt>.htaccess<\/tt>\u00a0file in a\u00a0<a title=\"Glossary\" href=\"https:\/\/codex.wordpress.org\/Glossary#Text_editor\">text editor<\/a>.<\/li>\n<li>Review its contents, looking for any custom rewrites or redirects you entered.\u00a0<b>Copy<\/b>\u00a0these to another text file for safe keeping.<\/li>\n<li>Close the file.<\/li>\n<li>Follow the instructions on the Permalinks SubPanel for updating your Permalinks to the\u00a0<tt>.htaccess<\/tt>\u00a0file.<\/li>\n<li>Open the new\u00a0<tt>.htaccess<\/tt>\u00a0file and check to see if your custom rewrites and redirects are still there. If not, copy them from the saved file and paste them into the new\u00a0<tt>.htaccess<\/tt>\u00a0file.<\/li>\n<li>Make any changes necessary in those custom rewrites and redirects to reflect the new site address.<\/li>\n<li>Save the file.<\/li>\n<li>Test those redirects to ensure they are working.<\/li>\n<\/ol>\n<p>If you make a mistake, you can\u00a0<a title=\"Restoring Your Database From Backup\" href=\"https:\/\/codex.wordpress.org\/Restoring_Your_Database_From_Backup\">Restoring Your Database From Backup<\/a>\u00a0from your backup and try this again. So make sure it is right the first time.<\/p>\n<h2><span id=\"Informa.C3.A7.C3.B5es_Adicionais\" class=\"mw-headline\">Informa\u00e7\u00f5es Adicionais<\/span><\/h2>\n<p>Much of this information was taken from\u00a0<a class=\"external text\" href=\"http:\/\/www.tamba2.org.uk\/wordpress\/\" rel=\"nofollow\">Podz&#8217; WordPress Guides<\/a>\u00a0where this topic is also discussed.<\/p>\n<p>Some other things you should consider a FULL Search &amp; Replace in your SQL database.<\/p>\n<ol>\n<li>Images link: image links are stored in &#8220;post_content&#8221; in the wp_posts table. You can use the similar code above to update image links.<\/li>\n<li>wp_options: Besides the &#8220;siteurl&#8221; and &#8220;home&#8221; items mentioned above, there are other option_value which also need revision, such as &#8220;upload path&#8221;, and some plugin items (depends on what you&#8217;ve installed, such as widgets, stats, DMSGuestbook, sitemap, etc.)<\/li>\n<li>Do a FULL database search for any items left. MAKE SURE you know what you are changing. and go through each item for possible improper replacement.<\/li>\n<li>If you a running a network \/ have multiple sites, you will NEED to replace all instances of the URL in the database. they are stored in many tables, including each one of the sites (blogs).<\/li>\n<\/ol>\n<p><a class=\"external text\" href=\"http:\/\/wphacks.com\/how-to-move-wordpress-blog-new-domain-name\/\" rel=\"nofollow\">How To: Move Your WordPress Blog to a New Domain<\/a>\u00a0&#8211; Using the Export\/Import feature to move a blog to a new domain<\/p>\n<table>\n<tbody>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/codex.wordpress.org\/images\/thumb\/3\/3d\/brasil-1.png\/60px-brasil-1.png\" srcset=\"\/images\/thumb\/3\/3d\/brasil-1.png\/90px-brasil-1.png 1.5x, \/images\/thumb\/3\/3d\/brasil-1.png\/120px-brasil-1.png 2x\" alt=\"brasil-1.png\" width=\"60\" height=\"60\" \/><\/td>\n<td>\n<div><a class=\"mw-redirect\" title=\"pt-br:P\u00e1gina Inicial\" href=\"https:\/\/codex.wordpress.org\/pt-br:P%C3%A1gina_Inicial\">Codex WordPress Brasil<\/a><\/div>\n<div><b>A documenta\u00e7\u00e3o do WordPress em Portugu\u00eas do Brasil.\u00a0<\/b><br \/>\n<i><small>Todas as comunidades lus\u00f3fonas tamb\u00e9m s\u00e3o bem-vindas! Adicione {{Codex-pt}} em seus artigos.<\/small><\/i><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<p>https:\/\/codex.wordpress.org\/pt-br:Mudando_o_URL_do_Site<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"oIri99ih5N\"><p><a href=\"https:\/\/tudosobrehospedagemdesites.com.br\/migrar-wordpress-mudanca-dominio\/\">Como migrar o WordPress com mudan\u00e7a de dom\u00ednio<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Como migrar o WordPress com mudan\u00e7a de dom\u00ednio&#8221; &#8212; Tudo Sobre Hospedagem de Sites\" src=\"https:\/\/tudosobrehospedagemdesites.com.br\/migrar-wordpress-mudanca-dominio\/embed\/#?secret=9PynXLGB7d#?secret=oIri99ih5N\" data-secret=\"oIri99ih5N\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Editando o arquivo\u00a0wp-config.php \u00c9 poss\u00edvel corrigir a URL do site usando este recurso: Adicione essas duas linhas no seu\u00a0wp-config.php, onde &#8220;exemplo.com&#8221; \u00e9 o novo local do seu site. define(&#8216;WP_HOME&#8217;,&#8217;http:\/\/exemplo.com&#8217;); define(&#8216;WP_SITEURL&#8217;,&#8217;http:\/\/exemplo.com&#8217;); Essa n\u00e3o \u00e9 necessariamente a melhor solu\u00e7\u00e3o, \u00e9 apenas codificar os valores no pr\u00f3prio site&#8230;.<\/p>\n","protected":false},"author":2,"featured_media":4394,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_angie_page":false,"page_builder":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-4393","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/posts\/4393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=4393"}],"version-history":[{"count":0,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/posts\/4393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/media\/4394"}],"wp:attachment":[{"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=4393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=4393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=4393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}