{"id":3041,"date":"2026-05-03T09:14:00","date_gmt":"2026-05-03T07:14:00","guid":{"rendered":"https:\/\/artheodoc.fr\/?page_id=3041"},"modified":"2026-05-03T10:46:58","modified_gmt":"2026-05-03T08:46:58","slug":"changer-le-nom-de-domaine-dun-site-wordpress","status":"publish","type":"page","link":"https:\/\/artheodoc.fr\/index.php\/changer-le-nom-de-domaine-dun-site-wordpress\/","title":{"rendered":"Changer le nom de domaine d\u2019un site WordPress"},"content":{"rendered":"\n<ul class=\"wp-block-list\">\n<li>J&rsquo;ai install\u00e9 <a href=\"https:\/\/artheodoc.fr\/index.php\/installation-de-wordpress-dans-une-machine-virtuelle-debian-13-sous-virtualbox\/\" data-type=\"page\" data-id=\"3056\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress dans une machine virtuelle sous Debian 13<\/a>. J&rsquo;ai \u00e9galement install\u00e9 <a href=\"https:\/\/artheodoc.fr\/index.php\/phpmyadmin\/\" data-type=\"page\" data-id=\"2821\" target=\"_blank\" rel=\"noreferrer noopener\">phpMyAdmin<\/a> sur cette machine.<\/li>\n\n\n\n<li>Dans mon cas j&rsquo;utilise une IP, je dois modifier <strong>http:\/\/192.168.1.21<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Modifier votre base de donn\u00e9es<\/h2>\n\n\n\n<p>Cette \u00e9tape consiste \u00e0 changer le nom de domaine dans la base de donn\u00e9es. Nous allons appliquer les changements sur la base de donn\u00e9es en utilisant <a href=\"https:\/\/wiki.memoirevive79.mooo.com\/index.php\/Installation_de_phpMyAdmin_sur_un_serveur_sous_Debian_13\">phpMyAdmin<\/a>&nbsp;:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Choisissez la base de donn\u00e9es que vous avez utilis\u00e9e pour votre site WordPress.<\/li>\n\n\n\n<li>Sur la page phpMyAdmin, trouvez la table <strong>wp_options<\/strong>.<\/li>\n\n\n\n<li>Double-cliquez sur l\u2019ancien nom de domaine avec votre souris pour le modifier et remplacez-le par votre nouveau nom de domaine sur les lignes siteurl et home.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"155\" src=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2026\/05\/WordPress-Nom-2-1024x155.png\" alt=\"\" class=\"wp-image-3042\" srcset=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2026\/05\/WordPress-Nom-2-1024x155.png 1024w, https:\/\/artheodoc.fr\/wp-content\/uploads\/2026\/05\/WordPress-Nom-2-300x45.png 300w, https:\/\/artheodoc.fr\/wp-content\/uploads\/2026\/05\/WordPress-Nom-2-768x116.png 768w, https:\/\/artheodoc.fr\/wp-content\/uploads\/2026\/05\/WordPress-Nom-2.png 1211w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Changer l\u2019URL du site web \u00e0 partir de votre tableau de bord WordPress<\/h2>\n\n\n\n<p>Depuis le tableau de bord de WordPress dans la barre lat\u00e9rale <strong>R\u00e9glages<\/strong> =&gt; <strong>G\u00e9n\u00e9ral<\/strong>. Ensuite, remplacez l\u2019ancien nom de domaine par le nouveau&nbsp;:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"903\" height=\"501\" src=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2026\/05\/WordPress-Nom-1.png\" alt=\"\" class=\"wp-image-3043\" srcset=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2026\/05\/WordPress-Nom-1.png 903w, https:\/\/artheodoc.fr\/wp-content\/uploads\/2026\/05\/WordPress-Nom-1-300x166.png 300w, https:\/\/artheodoc.fr\/wp-content\/uploads\/2026\/05\/WordPress-Nom-1-768x426.png 768w\" sizes=\"auto, (max-width: 903px) 100vw, 903px\" \/><\/figure>\n\n\n\n<p>Une fois que vous aurez termin\u00e9, assurez-vous de cliquer sur le bouton <code>Enregister les modifications<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Modifier le fichier wp-config.php<\/h2>\n\n\n\n<p>Vous devez maintenant \u00e9diter le fichier wp-config.php et y ajouter le nouveau nom de domaine.<\/p>\n\n\n\n<p>Je me suis connect\u00e9 en <a href=\"https:\/\/artheodoc.fr\/index.php\/utilisation-de-putty-depuis-le-reseau-local-ou-a-distance\/\" data-type=\"page\" data-id=\"54\" target=\"_blank\" rel=\"noreferrer noopener\">SSH<\/a> \u00e0 la machine h\u00e9bergeant le site WordPress.<\/p>\n\n\n\n<p>En administrateur root (<strong>su<\/strong>)&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/var\/www\/html\/wp-config.php\n<\/pre>\n\n\n\n<p>Dans mon cas, le param\u00e8tre n&rsquo;appara\u00eet pas dans le fichier.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Si on a install\u00e9 WordPress sans nom de domaine (en utilisant uniquement l&rsquo;adresse IP 192.168.1.21) et sans certificat SSL, c&rsquo;est normal que le fichier wp-config.php ne contienne pas d&rsquo;URL explicite pour <strong>WP_HOME<\/strong> ou <strong>WP_SITEURL<\/strong>. WordPress utilise par d\u00e9faut l&rsquo;URL avec laquelle il a \u00e9t\u00e9 install\u00e9 (ici, <strong>http:\/\/192.168.1.21<\/strong>).<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<p><strong>Sources&nbsp;:<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/www.journalducm.com\/comment-changer-nom-de-domaine-site-wordpress\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.journalducm.com\/comment-changer-nom-de-domaine-site-wordpress<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Modifier votre base de donn\u00e9es Cette \u00e9tape consiste \u00e0 changer le nom de domaine dans la base de donn\u00e9es. Nous allons appliquer les changements sur la base de donn\u00e9es en utilisant phpMyAdmin&nbsp;: Changer l\u2019URL du site web \u00e0 partir de votre tableau de bord WordPress Depuis le tableau de bord de WordPress dans la barre [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","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":"","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":"var(--ast-global-color-4)","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":""},"class_list":["post-3041","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/3041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/comments?post=3041"}],"version-history":[{"count":2,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/3041\/revisions"}],"predecessor-version":[{"id":3067,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/3041\/revisions\/3067"}],"wp:attachment":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/media?parent=3041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}