{"id":1772,"date":"2021-11-29T09:44:52","date_gmt":"2021-11-29T13:44:52","guid":{"rendered":"https:\/\/www.neothek.com\/soporte\/?post_type=kb&#038;p=1772"},"modified":"2022-04-29T14:26:29","modified_gmt":"2022-04-29T18:26:29","slug":"como-cambiar-la-direccion-url-o-dominio-de-su-sitio-de-wordpress","status":"publish","type":"kb","link":"https:\/\/www.neothek.com\/soporte\/articulo\/como-cambiar-la-direccion-url-o-dominio-de-su-sitio-de-wordpress\/","title":{"rendered":"C\u00f3mo cambiar la direcci\u00f3n URL o dominio de su sitio de WordPress"},"content":{"rendered":"<h2>\u00bfC\u00f3mo cambiar la direcci\u00f3n URL o dominio de su sitio de WordPress?<\/h2>\n<p style=\"text-align: justify;\">El nombre de dominio en un sitio WordPress es el medio para encontrar e identificar un sitio en la web.\u00a0 Por esa raz\u00f3n modificar el nombre de dominio en WordPress o direcci\u00f3n del sitio es un tema que se debe realizar de manera correcta.<\/p>\n<p style=\"text-align: justify;\">En ocasiones por diversos factores nos vemos obligados a cambiar la URL en WordPress (nombre de dominio). O solamente se desea modificar de http a https.<\/p>\n<p style=\"text-align: justify;\">En este articulo vamos a dar los pasos a seguir para cambiar el nombre de dominio en WordPress, sin comprometer la integridad del sitio web.<\/p>\n<h2>C\u00f3mo cambiar el nombre de dominio en WordPress<\/h2>\n<p style=\"text-align: justify;\">Existen varios m\u00e9todos para cambiar la direcci\u00f3n URL de un sitio web. Sin embargo, solo consideraremos tres de ellos.<\/p>\n<p style=\"text-align: justify;\">Los que consideraremos: a trav\u00e9s del panel administrativo de WordPress, por medio del archivo wp-config.php, y luego a trav\u00e9s de la base de datos de WordPress.<\/p>\n<h2>Por medio del Panel de Administraci\u00f3n WordPress<\/h2>\n<p style=\"text-align: justify;\">Desde el panel de administraci\u00f3n de WordPress se puede alterar, ajustar y cambiar par\u00e1metros en WordPress.<\/p>\n<p style=\"text-align: justify;\">Para comenzar, se debe iniciar sesi\u00f3n en el \u00e1rea de administraci\u00f3n de WordPress. Ir a Ajustes &gt;&gt; Generales.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-1775 size-full\" src=\"https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/wordpressadmin.jpg\" alt=\"\" width=\"752\" height=\"646\" srcset=\"https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/wordpressadmin.jpg 752w, https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/wordpressadmin-300x258.jpg 300w\" sizes=\"(max-width: 752px) 100vw, 752px\" \/><\/p>\n<p style=\"text-align: justify;\">En la p\u00e1gina siguiente, tendremos los campos <em><strong>Direcci\u00f3n de WordPress (URL<\/strong><\/em>) y <em><strong>Direcci\u00f3n del sitio (URL)\u00a0<\/strong><\/em>para poder modificar.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-1776 size-full\" src=\"https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/editurlwordpress.jpg\" alt=\"\" width=\"825\" height=\"595\" srcset=\"https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/editurlwordpress.jpg 825w, https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/editurlwordpress-300x216.jpg 300w, https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/editurlwordpress-768x554.jpg 768w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<p style=\"text-align: justify;\">En ambos campos, se debe reemplazar la direcci\u00f3n del sitio anterior por la nueva que desea usar. Aseg\u00farese de que ambos campos coincidan.<\/p>\n<p style=\"text-align: justify;\"><span class=\"mkb-shortcode-container\">\t\t<div class=\"mkb-warning\">\n\t\t\t<div class=\"mkb-warning__icon\">\n\t\t\t\t<i class=\"fa fa-exclamation-triangle fa-lg\"><\/i>\n\t\t\t<\/div>\n\t\t\t<div class=\"mkb-warning__content\">\n\t\t\t\tLa parte http (s): \/\/ debe incluirse en ambas configuraciones. Una barra inclinada (\/) no\u00a0 se debe colocar al final.\t\t\t<\/div>\n\t\t<\/div>\n\t<\/span>\n<p style=\"text-align: justify;\">Una vez concluido los campos a editar, ir hacia abajo y Guardar cambios.<\/p>\n<p style=\"text-align: justify;\">Para evitar errores de redireccionamiento despu\u00e9s de cambiar la URL a su sitio web, borre la memoria cach\u00e9 de su sitio web.<\/p>\n<h2 style=\"text-align: justify;\">Modificar nombre de dominio por medio de cPanel modificando el archivo wp-config.php<\/h2>\n<p style=\"text-align: justify;\">Uno de los m\u00e9todos mas f\u00e1ciles es modificar la url del nombre de dominio desde el archivo wp-config.php. Se puede acceder a este archivo por medio de cPanel.<\/p>\n<p style=\"text-align: justify;\">Una vez que haya accedido al archivo desde el Administrador de Archivos de cPanel, puede realizar los cambios abriendo el editor en l\u00ednea.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-1778 size-full\" src=\"https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/editwpconfig.jpg\" alt=\"\" width=\"1008\" height=\"566\" srcset=\"https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/editwpconfig.jpg 1008w, https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/editwpconfig-300x168.jpg 300w, https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/editwpconfig-768x431.jpg 768w\" sizes=\"(max-width: 1008px) 100vw, 1008px\" \/><\/p>\n<p>Las l\u00edneas que deben ser modificadas son las que se detallan a continuaci\u00f3n:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">define('WP_HOME','https:\/\/minuevodominio.com');\r\ndefine('WP_SITEURL','https:\/\/minuevodominio.com');<\/pre>\n<p style=\"text-align: justify;\">Con el c\u00f3digo copiado y pegado, guardar los cambios en el archivo. Resta ahora es configurar los redireccionamientos nuevamente.<\/p>\n<p style=\"text-align: justify;\">La configuraci\u00f3n correcta asegura que cualquier usuario intente acceder a su sitio web a trav\u00e9s de la URL anterior sea redirigida a la nueva.<\/p>\n<p>Se debe abrir el archivo .htaccess y copiar el siguiente c\u00f3digo dentro del archivo.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#Options +FollowSymLinks\r\nRewriteEngine on\r\nRewriteRule ^(.*)$ https:\/\/www.minuevodominio.com\/$1 [R=301,L]<\/pre>\n<span class=\"mkb-shortcode-container\">\t\t<div class=\"mkb-info\">\n\t\t\t<div class=\"mkb-info__icon\">\n\t\t\t\t<i class=\"fa fa-info-circle fa-lg\"><\/i>\n\t\t\t<\/div>\n\t\t\t<div class=\"mkb-info__content\">\n\t\t\t\tReemplazar minuevodominio.com con el nuevo nombre de dominio.\t\t\t<\/div>\n\t\t<\/div>\n\t<\/span>\n<h2>Cambiar el nombre de dominio de WordPress por medio de la Base de Datos.<\/h2>\n<p style=\"text-align: justify;\">Debemos acceder a la cuenta de cPanel y seleccionar phpMyAdmin en la secci\u00f3n de Base de Datos.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1785 size-full\" src=\"https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/phpMyAdmin.jpg\" alt=\"\" width=\"1034\" height=\"590\" srcset=\"https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/phpMyAdmin.jpg 1034w, https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/phpMyAdmin-300x171.jpg 300w, https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/phpMyAdmin-1024x584.jpg 1024w, https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/phpMyAdmin-768x438.jpg 768w\" sizes=\"(max-width: 1034px) 100vw, 1034px\" \/><\/p>\n<p style=\"text-align: justify;\">Posteriormente seleccionar el nombre de la base de datos y buscamos la tabla wp_options. Los campos a editar son <em><strong>siteurl<\/strong> <\/em>y <em><strong>home,\u00a0<\/strong><\/em>colocamos el nuevo valor del nombre de dominio.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1784 size-full\" src=\"https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/bdwordpress.jpg\" alt=\"\" width=\"1033\" height=\"590\" srcset=\"https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/bdwordpress.jpg 1033w, https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/bdwordpress-300x171.jpg 300w, https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/bdwordpress-1024x585.jpg 1024w, https:\/\/www.neothek.com\/soporte\/wp-content\/uploads\/2021\/11\/bdwordpress-768x439.jpg 768w\" sizes=\"(max-width: 1033px) 100vw, 1033px\" \/><\/p>\n<p style=\"text-align: justify;\">Con todas estas alternativas para modificar la URL del dominio de WordPress la integridad de su sitio web No se vera comprometido.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00bfC\u00f3mo cambiar la direcci\u00f3n URL o dominio de su sitio de WordPress? El nombre de dominio en un sitio WordPress es el medio para encontrar e identificar un sitio en la web.\u00a0 Por esa raz\u00f3n modificar el nombre de dominio en WordPress o direcci\u00f3n del sitio es un tema que se debe realizar de manera [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"kbtopic":[35,43],"kbtag":[179,180,92],"class_list":["post-1772","kb","type-kb","status-publish","hentry","kbtopic-cms-y-aplicaciones-web","kbtopic-wordpress","kbtag-cambiar-la-direccion-url","kbtag-cambio-de-dominio","kbtag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kb\/1772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/comments?post=1772"}],"version-history":[{"count":10,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kb\/1772\/revisions"}],"predecessor-version":[{"id":1992,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kb\/1772\/revisions\/1992"}],"wp:attachment":[{"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/media?parent=1772"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kbtopic?post=1772"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kbtag?post=1772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}