{"id":1484,"date":"2020-04-29T10:56:37","date_gmt":"2020-04-29T08:56:37","guid":{"rendered":"https:\/\/www.wp-moon.com\/?p=1484"},"modified":"2020-05-14T12:01:08","modified_gmt":"2020-05-14T10:01:08","slug":"change-links-image-links-to-https","status":"publish","type":"post","link":"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/","title":{"rendered":"Change links &#038; image links to https"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Issue<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You have made a migration of your WordPress from <strong>http to https<\/strong> but some <strong>links <\/strong>and <strong>images <\/strong>still have &#8220;<em>http<\/em>&#8221; into their URL ?<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The cause<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When you <strong>migrate your website<\/strong> from an URL to another URL or simply change http to https, some URLs may not be changed. Why ? There are lots of explanations: your page &amp; post content have not been changed, you use a custom plugin or a custom shortcode etc.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The solution<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The goal is to replace every URLs, you can do it <strong>manually <\/strong>of course but it may be a pain when there are a<strong> lot of URLs<\/strong> !<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We highly recommend to use a <strong>search &amp; replace plugin<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example <a rel=\"noreferrer noopener\" href=\"https:\/\/fr.wordpress.org\/plugins\/better-search-replace\/\" target=\"_blank\">Better Search Replace<\/a> is a must have. This plugin will allow you to replace everything existing into your database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The use of this plugin is pretty simple. You have to search for <code>http:\/\/www.yoururl.com<\/code> and replace with <code>https:\/\/www.<code>yoururl.com<\/code><\/code> in all tables.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"734\" src=\"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/screenshot-1-1024x734.png\" alt=\"\" class=\"wp-image-1487\" srcset=\"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/screenshot-1-1024x734.png 1024w, https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/screenshot-1-300x215.png 300w, https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/screenshot-1-768x550.png 768w, https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/screenshot-1-1536x1101.png 1536w, https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/screenshot-1.png 1970w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If this plugin is not enough to solve your plugin, you should try <a rel=\"noreferrer noopener\" href=\"https:\/\/fr.wordpress.org\/plugins\/really-simple-ssl\/\" target=\"_blank\">Really simple SSL<\/a>. This plugin will transform all your non-secure URLs when it is enabled.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Issue You have made a migration of your WordPress from http to https but some links and images still have &#8220;http&#8221; into their URL ? The cause When you migrate your website from an URL to another URL or simply change http to https, some URLs may not be changed. Why ? There are lots &hellip; <a href=\"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Change links &#038; image links to https<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":1486,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[118,119,120],"class_list":["post-1484","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fix-errors","tag-https","tag-links","tag-urls"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Change links &amp; image links to https - WP Moon<\/title>\n<meta name=\"description\" content=\"Issue You have made a migration of your WordPress from http to https but some links and images still have &quot;http&quot; into their URL ? The cause When you\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Change links &amp; image links to https - WP Moon\" \/>\n<meta property=\"og:description\" content=\"Issue You have made a migration of your WordPress from http to https but some links and images still have &quot;http&quot; into their URL ? The cause When you\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Moon\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpmoonwebsite\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-29T08:56:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-14T10:01:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/https-min.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1600\" \/>\n\t<meta property=\"og:image:height\" content=\"1288\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Alexandre G\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@alexgaboriau\" \/>\n<meta name=\"twitter:site\" content=\"@WPMoon4\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alexandre G\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Change links & image links to https - WP Moon","description":"Issue You have made a migration of your WordPress from http to https but some links and images still have \"http\" into their URL ? The cause When you","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/","og_locale":"en_US","og_type":"article","og_title":"Change links & image links to https - WP Moon","og_description":"Issue You have made a migration of your WordPress from http to https but some links and images still have \"http\" into their URL ? The cause When you","og_url":"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/","og_site_name":"WP Moon","article_publisher":"https:\/\/www.facebook.com\/wpmoonwebsite","article_published_time":"2020-04-29T08:56:37+00:00","article_modified_time":"2020-05-14T10:01:08+00:00","og_image":[{"width":1600,"height":1288,"url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/https-min.jpg","type":"image\/jpeg"}],"author":"Alexandre G","twitter_card":"summary_large_image","twitter_creator":"@alexgaboriau","twitter_site":"@WPMoon4","twitter_misc":{"Written by":"Alexandre G","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/#article","isPartOf":{"@id":"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/"},"author":{"name":"Alexandre G","@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/person\/72a64e6910977ec9e4b32fd8da54369d"},"headline":"Change links &#038; image links to https","datePublished":"2020-04-29T08:56:37+00:00","dateModified":"2020-05-14T10:01:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/"},"wordCount":187,"commentCount":0,"publisher":{"@id":"https:\/\/www.wp-moon.com\/en\/#organization"},"image":{"@id":"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/https-min.jpg","keywords":["https","links","urls"],"articleSection":["Fix Errors"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/","url":"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/","name":"Change links & image links to https - WP Moon","isPartOf":{"@id":"https:\/\/www.wp-moon.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/#primaryimage"},"image":{"@id":"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/https-min.jpg","datePublished":"2020-04-29T08:56:37+00:00","dateModified":"2020-05-14T10:01:08+00:00","description":"Issue You have made a migration of your WordPress from http to https but some links and images still have \"http\" into their URL ? The cause When you","breadcrumb":{"@id":"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/#primaryimage","url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/https-min.jpg","contentUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/https-min.jpg","width":1600,"height":1288,"caption":"https"},{"@type":"BreadcrumbList","@id":"https:\/\/www.wp-moon.com\/en\/change-links-image-links-to-https\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wp-moon.com\/en\/"},{"@type":"ListItem","position":2,"name":"Fix Errors","item":"https:\/\/www.wp-moon.com\/en\/category\/fix-errors\/"},{"@type":"ListItem","position":3,"name":"Change links &#038; image links to https"}]},{"@type":"WebSite","@id":"https:\/\/www.wp-moon.com\/en\/#website","url":"https:\/\/www.wp-moon.com\/en\/","name":"WP Moon","description":"","publisher":{"@id":"https:\/\/www.wp-moon.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wp-moon.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.wp-moon.com\/en\/#organization","name":"WP Moon","url":"https:\/\/www.wp-moon.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/02\/logo.png","contentUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/02\/logo.png","width":290,"height":95,"caption":"WP Moon"},"image":{"@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/wpmoonwebsite","https:\/\/x.com\/WPMoon4"]},{"@type":"Person","@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/person\/72a64e6910977ec9e4b32fd8da54369d","name":"Alexandre G","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2023\/09\/312419460_10229483707296045_2919774527885824513_n-100x100.jpg","url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2023\/09\/312419460_10229483707296045_2919774527885824513_n-100x100.jpg","contentUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2023\/09\/312419460_10229483707296045_2919774527885824513_n-100x100.jpg","caption":"Alexandre G"},"description":"Alexandre, Web Developer &amp; Website Editor. I've been using WordPress for over 10 years in my professional environment and on personal projects. I created WP Moon to teach you how to use this CMS, solve your problems and show you all the tricks.","sameAs":["https:\/\/www.croque-pixel.com\/","https:\/\/x.com\/alexgaboriau","https:\/\/www.youtube.com\/@wp_moon\/videos"],"url":"https:\/\/www.wp-moon.com\/en\/author\/wp-moon\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/posts\/1484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/comments?post=1484"}],"version-history":[{"count":0,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/posts\/1484\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/media\/1486"}],"wp:attachment":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/media?parent=1484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/categories?post=1484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/tags?post=1484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}