{"id":29974,"date":"2023-04-27T00:41:13","date_gmt":"2023-04-27T00:41:13","guid":{"rendered":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-do-a-search-replace\/"},"modified":"2026-05-02T05:04:03","modified_gmt":"2026-05-02T05:04:03","slug":"how-to-do-a-search-replace","status":"publish","type":"knowledgebase","link":"https:\/\/www.wpstaq.com\/sg\/knowledgebase\/how-to-do-a-search-replace\/","title":{"rendered":"How to do a Search &#038; Replace"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">To perform a Search &amp; Replace within the database, you have 2 options!<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Option 1 &#8211; Via Staq Panel<\/span><\/h2>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Navigate to the <\/span><b>Staq Panel <\/b><span style=\"font-weight: 400;\">of the website in question by clicking on the <\/span><b>website ID<\/b><span style=\"font-weight: 400;\"> from the <\/span><b>Websites Table. <\/b><b><br \/>\n<\/b><b><br \/>\n<\/b><b><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-28622\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/04\/Navigate-To-StaqPanel-1.png\" alt=\"\" width=\"1000\" height=\"458\" \/><\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">Within<\/span><b> Staq Panel, <\/b><span style=\"font-weight: 400;\">Navigate to <\/span><b>\u2018Search &amp; Replace\u2019 <\/b><span style=\"font-weight: 400;\">under <\/span><b>\u2018Databases\u2019.<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-28629\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/04\/Navigate-Search-Replace.png\" alt=\"\" width=\"800\" height=\"464\" \/><\/p>\n<p><b><br \/>\n<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">From the Search &amp; Replace screen, you\u2019ll find our simple Search &amp; Replace feature!<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">In this example, we\u2019re replacing a spelling error!<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-28630\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/04\/Use-Search-Replace.png\" alt=\"\" width=\"688\" height=\"464\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-weight: 400;\">Option 2 &#8211; Via WordPress backend<\/span><\/h2>\n<p>The Staq solution of search\/replace inside the backend of WordPress goes even deeper.<\/p>\n<p>To initiate a database search and replace, log into the site&#8217;s backend followed by <strong>Staq Hosting<\/strong> plugin. Click <strong>Database\u00a0<\/strong>and then insert the OLD and NEW links:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-89241\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/04\/database-search-replace-1024x524.png\" alt=\"\" width=\"1024\" height=\"524\" srcset=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/04\/database-search-replace-1024x524.png 1024w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/04\/database-search-replace-300x153.png 300w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/04\/database-search-replace-768x393.png 768w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/04\/database-search-replace-1536x785.png 1536w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/04\/database-search-replace.png 1672w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Below, you can select either certain database tables or scan ALL tables with your search\/replace.<\/p>\n<p>You can even go further based on more complicated search\/replace where you can search\/replace via:<\/p>\n<ul>\n<li><strong>Replace backslashes<\/strong>: Also replace backslash-encoded variants. Helps cover Slider Revolution, Visual Composer, Elementor, etc.<\/li>\n<li><strong>Replace URL-encoded values<\/strong>:\u00a0 Use this when URLs are stored inside encoded builder data (WP Bakery), JSON attributes, shortcode settings, or plugin metadata (e.g. https%3A%2F%2Fexample.com). Generates encoded variants of your search\/replace pair \u2014 including protocol-relative and lowercase percent-octet forms \u2014 and applies them with the same serialization-safe walker. This is not enabled by default.<\/li>\n<li><strong>Deep replace (plugin\/theme settings): <\/strong>Scan complex serialised data stored by plugins and themes. Enable if some old URLs remain after a normal run.<\/li>\n<\/ul>\n","protected":false},"featured_media":29697,"parent":0,"template":"","class_list":["post-29974","knowledgebase","type-knowledgebase","status-publish","has-post-thumbnail","hentry","categories-database"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to do a Search &amp; Replace - Managed Hosting Platform for WordPress<\/title>\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.wpstaq.com\/knowledgebase\/how-to-do-a-search-replace\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to do a Search &amp; Replace - Managed Hosting Platform for WordPress\" \/>\n<meta property=\"og:description\" content=\"To perform a Search &amp; Replace within the database, you have 2 options! Option 1 &#8211; Via Staq Panel &nbsp; Navigate to the Staq Panel of the website in question by clicking on the website ID from the Websites Table. Within Staq Panel, Navigate to \u2018Search &amp; Replace\u2019 under \u2018Databases\u2019. From the Search &amp; Replace&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-do-a-search-replace\/\" \/>\n<meta property=\"og:site_name\" content=\"Managed Hosting Platform for WordPress\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/staqhosting\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-02T05:04:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/Search-Replace-Database.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-do-a-search-replace\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-do-a-search-replace\\\/\",\"name\":\"How to do a Search & Replace - Managed Hosting Platform for WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-do-a-search-replace\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-do-a-search-replace\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Search-Replace-Database.png\",\"datePublished\":\"2023-04-27T00:41:13+00:00\",\"dateModified\":\"2026-05-02T05:04:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-do-a-search-replace\\\/#breadcrumb\"},\"inLanguage\":\"en-sg\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-do-a-search-replace\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-sg\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-do-a-search-replace\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Search-Replace-Database.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Search-Replace-Database.png\",\"width\":1000,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-do-a-search-replace\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wpstaq.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to do a Search &#038; Replace\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"name\":\"Managed Hosting Platform for WordPress\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wpstaq.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-sg\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\",\"name\":\"Staq\",\"alternateName\":\"WPStaq\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-sg\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"width\":512,\"height\":512,\"caption\":\"Staq\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/staqhosting\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wpstaq\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to do a Search & Replace - Managed Hosting Platform for WordPress","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.wpstaq.com\/knowledgebase\/how-to-do-a-search-replace\/","og_locale":"en_US","og_type":"article","og_title":"How to do a Search & Replace - Managed Hosting Platform for WordPress","og_description":"To perform a Search &amp; Replace within the database, you have 2 options! Option 1 &#8211; Via Staq Panel &nbsp; Navigate to the Staq Panel of the website in question by clicking on the website ID from the Websites Table. Within Staq Panel, Navigate to \u2018Search &amp; Replace\u2019 under \u2018Databases\u2019. From the Search &amp; Replace&hellip;","og_url":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-do-a-search-replace\/","og_site_name":"Managed Hosting Platform for WordPress","article_publisher":"https:\/\/www.facebook.com\/staqhosting\/","article_modified_time":"2026-05-02T05:04:03+00:00","og_image":[{"width":1000,"height":500,"url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/Search-Replace-Database.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-do-a-search-replace\/","url":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-do-a-search-replace\/","name":"How to do a Search & Replace - Managed Hosting Platform for WordPress","isPartOf":{"@id":"https:\/\/www.wpstaq.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-do-a-search-replace\/#primaryimage"},"image":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-do-a-search-replace\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/Search-Replace-Database.png","datePublished":"2023-04-27T00:41:13+00:00","dateModified":"2026-05-02T05:04:03+00:00","breadcrumb":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-do-a-search-replace\/#breadcrumb"},"inLanguage":"en-sg","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpstaq.com\/knowledgebase\/how-to-do-a-search-replace\/"]}]},{"@type":"ImageObject","inLanguage":"en-sg","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-do-a-search-replace\/#primaryimage","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/Search-Replace-Database.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/Search-Replace-Database.png","width":1000,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-do-a-search-replace\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wpstaq.com\/"},{"@type":"ListItem","position":2,"name":"How to do a Search &#038; Replace"}]},{"@type":"WebSite","@id":"https:\/\/www.wpstaq.com\/#website","url":"https:\/\/www.wpstaq.com\/","name":"Managed Hosting Platform for WordPress","description":"","publisher":{"@id":"https:\/\/www.wpstaq.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wpstaq.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-sg"},{"@type":"Organization","@id":"https:\/\/www.wpstaq.com\/#organization","name":"Staq","alternateName":"WPStaq","url":"https:\/\/www.wpstaq.com\/","logo":{"@type":"ImageObject","inLanguage":"en-sg","@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","width":512,"height":512,"caption":"Staq"},"image":{"@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/staqhosting\/","https:\/\/www.linkedin.com\/company\/wpstaq"]}]}},"_links":{"self":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/knowledgebase\/29974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/types\/knowledgebase"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/media\/29697"}],"wp:attachment":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/media?parent=29974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}