{"id":69634,"date":"2022-11-21T15:34:01","date_gmt":"2022-11-21T15:34:01","guid":{"rendered":"\/tutorials\/?p=69634"},"modified":"2026-07-02T01:30:08","modified_gmt":"2026-07-02T01:30:08","slug":"clone-website","status":"publish","type":"post","link":"\/tutorials\/clone-website","title":{"rendered":"How to clone a website"},"content":{"rendered":"<p>To clone a website, <strong>copy its design and content to a new location<\/strong> using an AI cloner, browser developer tools, a download utility, a content management system (CMS) plugin, or a manual file and database transfer.<\/p><p>Cloning a website can mean copying a front-end design, downloading a static site, recreating a layout with AI, duplicating a CMS site you own, or moving files and a database by hand.<\/p><p>A full, working website clone goes beyond duplicating the visible design. You also need to copy the site&rsquo;s files, database, hosting settings, and configuration files.<\/p><p>Here are five website cloning methods, ordered from the quickest design copy to a full site move:<\/p><ol class=\"wp-block-list\">\n<li><strong>AI website cloners.<\/strong> Recreate a page&rsquo;s frontend from a URL or screenshot. This is the fastest option for copying a design.<\/li>\n\n\n\n<li><strong>Browser developer tools.<\/strong> Copy a single page&rsquo;s code by hand. This works best for studying or reusing one layout.<\/li>\n\n\n\n<li><strong>Command-line and offline tools.<\/strong> Download a static site&rsquo;s public files with wget or HTTrack. This works best for offline viewing or local edits.<\/li>\n\n\n\n<li><strong>CMS plugins and hosting tools.<\/strong> Bundle a site&rsquo;s files and database. This is ideal for staging or moving a site you own.<\/li>\n\n\n\n<li><strong>Manual file and database migration.<\/strong> Copy everything yourself. This is the most involved but flexible option.<\/li>\n<\/ol><p>Note that website cloning has legal implications. You can freely clone a site you own or recreate a layout for practice, but copying someone else&rsquo;s protected content without permission may violate copyright law.<\/p><h2 class=\"wp-block-heading\" id=\"h-which-website-cloning-method-should-you-use\"><strong>Which website cloning method should you use?<\/strong><\/h2><p>The right website cloning method depends on <strong>whether you own the site and which parts you need to copy<\/strong>. Use the following table to match your goal with the best method before you start.<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td><strong>Method<\/strong><\/td><td><strong>Best for<\/strong><\/td><td><strong>Copies<\/strong><\/td><td><strong>Doesn&rsquo;t copy<\/strong><\/td><\/tr><tr><td><strong>AI website cloner<\/strong><\/td><td>No-code design recreation, mockups<\/td><td>Front-end layout, design<\/td><td>Backend, database, accounts<\/td><\/tr><tr><td><strong>Browser developer tools<\/strong><\/td><td>Learning, copying a single page<\/td><td>HTML, CSS, JavaScript references<\/td><td>Server logic, database, protected assets<\/td><\/tr><tr><td><strong>wget \/ HTTrack<\/strong><\/td><td>Static sites, offline viewing<\/td><td>Public static files<\/td><td>Database, admin area, backend, forms<\/td><\/tr><tr><td><strong>CMS plugin \/ hosting tool<\/strong><\/td><td>Owned CMS sites, staging, migration<\/td><td>Files and database<\/td><td>Email, FTP, SSH, varies by tool<\/td><\/tr><tr><td><strong>Manual file and database migration<\/strong><\/td><td>Owned sites with server access<\/td><td>Everything, by hand<\/td><td>Nothing, if done fully<\/td><\/tr><\/tbody><\/table><\/figure><h2 class=\"wp-block-heading\" id=\"h-what-does-it-mean-to-clone-a-website\"><strong>What does it mean to clone a website?<\/strong><\/h2><p>Cloning a website means <strong>copying some or all of it<\/strong>. The methods below fall into two groups: <strong>copying how a site looks<\/strong> and <strong>copying how it works<\/strong>.<\/p><p>A front-end clone copies the visible layer: HTML, <a href=\"\/tutorials\/what-is-css\/\">CSS<\/a>, JavaScript, and images that load in the browser. It captures how a page looks, not how it works behind the scenes.<\/p><p>You save those same files to disk for offline viewing or local edits to create a static clone. This works best for simple sites that don&rsquo;t rely on a server to build each page.<\/p><p>Reproducing how a site works requires a full clone, which includes the database, server settings, and configuration files. This is what you need to move a working CMS site or store to a new home.<\/p><h2 class=\"wp-block-heading\" id=\"h-is-it-legal-to-clone-a-website\"><strong>Is it legal to clone a website?<\/strong><\/h2><p>Cloning a website is <strong>legal when you own the site or recreate a layout for private practice<\/strong>. It crosses a line when you copy someone else&rsquo;s protected content without permission.<\/p><p>In general, a site&rsquo;s overall layout or concept is treated differently from its specific code, text, graphics, and logos, which are protected by copyright.<\/p><p>Acceptable website cloning uses include:<\/p><ul class=\"wp-block-list\">\n<li>Cloning a website you own for staging, migration, or backups.<\/li>\n\n\n\n<li>Building a private practice project that you don&rsquo;t publish.<\/li>\n\n\n\n<li>Using a layout as inspiration, then rebuilding it with your own design and content.<\/li>\n<\/ul><p>Avoid these practices when cloning a website:<\/p><ul class=\"wp-block-list\">\n<li>Copying logos, brand assets, written content, or copyrighted images.<\/li>\n\n\n\n<li>Publishing another site&rsquo;s design and passing it off as your own.<\/li>\n\n\n\n<li>Bypassing passwords, paywalls, or private areas.<\/li>\n<\/ul><p>Only use public cloning tools on public pages you have the right to copy. Laws differ by country, so check your local rules if you&rsquo;re unsure.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-clone-a-website\"><strong>How to clone a website<\/strong><\/h2><p>To clone a website, <strong>use an AI cloner, browser developer tools, wget or HTTrack, a CMS plugin or hosting feature, or manually copy the site&rsquo;s files and database<\/strong>.<\/p><p>Choose the method that matches your goal, since each one copies a different layer of the site.<\/p><h3 class=\"wp-block-heading\"><strong>Use an AI website cloner<\/strong><\/h3><p>An AI website cloner recreates a website&rsquo;s frontend from a URL, screenshot, or prompt. It reads the rendered page and generates fresh HTML, CSS, and <a href=\"\/tutorials\/what-is-javascript\/\">JavaScript<\/a>, so the new code rarely matches the original structure or class names.<\/p><p>URL-first tools like Open Lovable and 10Web work best for this because they read an existing page and rebuild it.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a566bd0bf691\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a566bd0bf691\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1999\" height=\"1024\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/10web-ai-builder-generate-website-from-url.png\/w=1024,h=1024,fit=scale-down\" alt=\"10Web AI builder showing a website generated from a URL with a live preview\" class=\"wp-image-152056\" title=\"10web-ai-builder-generate-website-from-url.jpg\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/10web-ai-builder-generate-website-from-url.png\/w=1999,fit=scale-down 1999w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/10web-ai-builder-generate-website-from-url.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/10web-ai-builder-generate-website-from-url.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/10web-ai-builder-generate-website-from-url.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/10web-ai-builder-generate-website-from-url.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/10web-ai-builder-generate-website-from-url.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p>General AI builders like Bolt.new can clone from a URL, too, but they&rsquo;re built to generate new sites from prompts. They often struggle to accurately copy a specific site.<\/p><p>Using an AI cloner suits no-code users who want to recreate a design, build a mockup, or create an editable starting layout. The visual match is usually close on simple pages, while complex pages need manual cleanup.<\/p><p>The look transfers, but the logic doesn&rsquo;t. AI cloners skip back-end code, databases, private dashboards, checkout systems, and user accounts. They also struggle with lazy-loaded content, login-gated pages, and heavy animations.<\/p><p>Accuracy can vary by tool and source website. The same site can look nearly perfect from one cloner and unrecognizable from another, so test two or three tools before choosing one.<\/p><p>These tools usually charge for each use, so cloning a large, detailed site costs more than copying a simple page. Whichever tool you pick, expect some manual work afterward. Forms, menus, and mobile layouts often need hand-fixing once the copy is ready.<\/p><p>Before publishing anything an AI tool generates, replace any copied branding, text, images, logos, and colors with your own. Reusing another brand&rsquo;s assets can turn a design recreation into copyright violation.<\/p><p>For a fresh website rather than a copy, use a prompt-first builder like Hostinger Website Builder. For code-heavy builds, use an <a href=\"\/tutorials\/best-ai-coding-tools\/\">AI coding tool<\/a>.<\/p><h3 class=\"wp-block-heading\"><strong>Copy a page with browser developer tools<\/strong><\/h3><p>Browser developer tools let you clone a single web page by exposing its HTML, CSS, and JavaScript, letting you copy them by hand. They work best for studying a layout or reusing a single page, not for capturing an entire site.<\/p><p>To copy a page with developer tools:<\/p><ol class=\"wp-block-list\">\n<li>Open the page in Chrome or Firefox.<\/li>\n\n\n\n<li>Right-click the page or an element and select <strong>Inspect<\/strong> to open developer tools.<\/li>\n\n\n\n<li>Read the markup in the <strong>Elements<\/strong> panel and the matching rules in the <strong>Styles<\/strong> tab.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a566bd0c1620\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a566bd0c1620\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1999\" height=\"1087\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/browser-devtools-wordpress-homepage-elements-panel-highlighted.png\/w=1024,h=1024,fit=scale-down\" alt=\"Chrome DevTools Elements panel showing the live HTML of a WordPress homepage\" class=\"wp-image-152057\" title=\"browser-devtools-wordpress-homepage-elements-panel-highlighted.jpg\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/browser-devtools-wordpress-homepage-elements-panel-highlighted.png\/w=1999,fit=scale-down 1999w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/browser-devtools-wordpress-homepage-elements-panel-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/browser-devtools-wordpress-homepage-elements-panel-highlighted.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/browser-devtools-wordpress-homepage-elements-panel-highlighted.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/browser-devtools-wordpress-homepage-elements-panel-highlighted.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/browser-devtools-wordpress-homepage-elements-panel-highlighted.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>Open the <strong>Sources<\/strong> and <strong>Network<\/strong> panels to find linked CSS, JavaScript, images, and their real URLs.<\/li>\n\n\n\n<li>Copy the code into a local editor and save it as an <strong>.html<\/strong> file.<\/li>\n<\/ol><p>Once you have the markup and styles, <a href=\"\/tutorials\/how-to-link-a-stylesheet-css-file-to-your-html-file\/\">link your CSS to the HTML<\/a> in your local copy. <a href=\"\/tutorials\/add-javascript-to-html\/\">Add JavaScript to your HTML<\/a> as well if the target page uses it.<\/p><p>What you see in the <strong>Elements<\/strong> panel can differ from the page&rsquo;s source code, so the copy you create may not match it exactly.<\/p><p>Copied CSS often points to assets in their original locations, so some styles or images may break after you move the files to another server or your local machine.<\/p><p>For a faster single-page copy, use your browser&rsquo;s <strong>Save page as &rarr; Webpage, Complete<\/strong> option to download the HTML and assets in one step.<\/p><h3 class=\"wp-block-heading\"><strong>Download a static website with wget or HTTrack<\/strong><\/h3><p>Wget and HTTrack clone a static website by downloading its public files for offline viewing or local editing. Neither tool copies the interactive parts of a site, including:<\/p><ul class=\"wp-block-list\">\n<li>Databases and admin panels.<\/li>\n\n\n\n<li>Back-end code and form processing.<\/li>\n\n\n\n<li>Checkout and login systems.<\/li>\n\n\n\n<li>Private or password-protected files.<\/li>\n<\/ul><p>On Linux and macOS, you can copy a public site with a single <a href=\"\/tutorials\/wget-command-examples\/\">wget command<\/a>:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">wget --mirror --convert-links --adjust-extension --page-requisites --no-parent https:\/\/domain.tld<\/pre><p>The <strong>&ndash;mirror<\/strong> flag follows the site&rsquo;s internal links and downloads each page, <strong>&ndash;page-requisites<\/strong> grabs the CSS, JavaScript, and images each page needs, and <strong>&ndash;convert-links<\/strong> fixes the links so the copy works offline.<\/p><p>You can add more flags to limit crawl depth, skip certain file types, or sign in to protected pages.<\/p><p>Consider slowing down the download so the site doesn&rsquo;t block your IP. The <strong>&ndash;wait<\/strong> and <strong>&ndash;limit-rate<\/strong> flags space out requests, and wget follows the site&rsquo;s <strong>robots.txt<\/strong> rules by default.<\/p><p>Wget can&rsquo;t run JavaScript, so single-page apps and sites built with frameworks often return almost empty responses. URLs with extra parameters, like <strong>style.css?ver=2<\/strong>, can also break filenames. The <strong>&ndash;restrict-file-names=windows<\/strong> flag helps prevent this.<\/p><p>HTTrack is a free alternative that works on Windows, macOS, and Linux through a simple interface, so it&rsquo;s the easier pick if you&rsquo;d rather click than type commands.<\/p><p>The download saves as a folder of HTML, CSS, JavaScript, and image files, with <strong>index.html<\/strong> as the home page. Open that file in any browser to view the site offline, edit it in a code editor, or upload the folder to a web host to publish your version.<\/p><h3 class=\"wp-block-heading\"><strong>Clone a CMS website with a plugin or hosting tool<\/strong><\/h3><p>Cloning a CMS website means copying its files and database together, then reconnecting them at the destination. A plugin or host-level tool usually handles the whole process for you.<\/p><p>A migration or cloning plugin bundles the files and database into one archive, then rebuilds them on the new site. This suits users who prefer working inside the CMS dashboard.<\/p><p>More advanced plugins also handle the step that breaks most manual clones: updating the site&rsquo;s web address everywhere the database has stored it, without corrupting any settings along the way.<\/p><p>A host-level tool does the same job from your hosting control panel, often as a 1-click clone or staging option.<\/p><p>It&rsquo;s usually the fastest approach when your host offers it, since it copies the files and database on the server and points the clone to itself, so you skip downloading and re-uploading anything.<\/p><p>Both methods share one limit: they only work on sites you own and can install a plugin on or access the control panel for.<\/p><p>They also clone the website itself, not the extras tied to the account. You&rsquo;ll still need to move email accounts, FTP users, and external integrations separately.<\/p><h3 class=\"wp-block-heading\"><strong>Clone website files and database manually<\/strong><\/h3><p>The manual cloning method is for site owners with server and database access who want full control. It works on almost any platform, but you&rsquo;ll handle every step yourself.<\/p><p>To clone a website manually:<\/p><ol class=\"wp-block-list\">\n<li>Create a complete backup of the site first.<\/li>\n\n\n\n<li>Download the files through FTP, SFTP, SSH, or a file manager.<\/li>\n\n\n\n<li><a href=\"\/tutorials\/export-mysql-database-with-phpmyadmin\/\">Export the database from phpMyAdmin<\/a> as an SQL file.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a566bd0c39d4\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a566bd0c39d4\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1999\" height=\"646\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/phpmyadmin-export-tab-export-button-highlighted.png\/w=1024,h=1024,fit=scale-down\" alt=\"phpMyAdmin Export tab with the Quick method and SQL format selected\" class=\"wp-image-152064\" title=\"phpmyadmin-export-tab-export-button-highlighted.jpg\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/phpmyadmin-export-tab-export-button-highlighted.png\/w=1999,fit=scale-down 1999w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/phpmyadmin-export-tab-export-button-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/phpmyadmin-export-tab-export-button-highlighted.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/phpmyadmin-export-tab-export-button-highlighted.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/phpmyadmin-export-tab-export-button-highlighted.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/phpmyadmin-export-tab-export-button-highlighted.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>Upload the files to the new location.<\/li>\n\n\n\n<li>Create a new database and import the SQL file.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a566bd0c5372\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a566bd0c5372\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1999\" height=\"692\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/phpmyadmin-import-tab-choose-file-highlighted.png\/w=1024,h=1024,fit=scale-down\" alt=\"phpMyAdmin Import tab with database.sql selected in the Choose File field\" class=\"wp-image-152065\" title=\"phpmyadmin-import-tab-choose-file-highlighted.jpg\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/phpmyadmin-import-tab-choose-file-highlighted.png\/w=1999,fit=scale-down 1999w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/phpmyadmin-import-tab-choose-file-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/phpmyadmin-import-tab-choose-file-highlighted.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/phpmyadmin-import-tab-choose-file-highlighted.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/phpmyadmin-import-tab-choose-file-highlighted.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/phpmyadmin-import-tab-choose-file-highlighted.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><ol start=\"6\" class=\"wp-block-list\">\n<li>Update the configuration file with the new database details.<\/li>\n\n\n\n<li>Replace the old URLs with the new domain.<\/li>\n\n\n\n<li>Test every page and feature on the copy.<\/li>\n<\/ol><p>The configuration file tells the site how to reach its database. Its name depends on the platform: WordPress uses <a href=\"\/tutorials\/how-to-use-wp-config-php-wordpress-function\/\">wp-config.php<\/a>, and Laravel uses <strong>.env<\/strong>. Open it and enter the new database name, user, and password.<\/p><p>URLs are where clones most often break. Don&rsquo;t swap the old address for the new one with a plain find-and-replace in the database.<\/p><p>WordPress saves some settings in a format that records each value&rsquo;s length. A plain swap changes the text but not the recorded length, which can break widgets, theme options, and plugin data.<\/p><p>Use a tool that fixes those lengths while swapping the addresses. <a href=\"\/tutorials\/wp-cli\/\">WP-CLI<\/a> does it in one command, which you should dry-run first to preview the changes:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cd domains\/new-domain.tld\/public_html\nwp search-replace 'https:\/\/old-domain.tld' 'https:\/\/new-domain.tld' --skip-columns=guid --dry-run<\/pre><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a566bd0c73b9\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a566bd0c73b9\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1996\" height=\"1666\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/wp-cli-search-replace-dry-run-output.png\/w=1024,h=1024,fit=scale-down\" alt=\"WP-CLI search-replace dry run output listing tables, columns, and replacement counts\" class=\"wp-image-152066\" title=\"wp-cli-search-replace-dry-run-output.jpg\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/wp-cli-search-replace-dry-run-output.png\/w=1996,fit=scale-down 1996w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/wp-cli-search-replace-dry-run-output.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/wp-cli-search-replace-dry-run-output.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/wp-cli-search-replace-dry-run-output.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/wp-cli-search-replace-dry-run-output.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/wp-cli-search-replace-dry-run-output.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1996px) 100vw, 1996px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p>Swap <strong>new-domain.tld<\/strong> for the actual folder name of your new domain, and put your real old and new URLs in the quotes.<\/p><p>Skip the <strong>guid<\/strong> column, since those are fixed IDs, not real URLs. Run it once for each address version, because <strong>http<\/strong>, <strong>https<\/strong>, <strong>www<\/strong>, and non-<strong>www<\/strong> each count separately.<\/p><p>After the preview looks right, remove <strong>&ndash;dry-run<\/strong> to apply it. If you&rsquo;d rather not use the command line, a plugin like Better Search Replace does the same thing from the dashboard.<\/p><p>Finally, test the clone before going live, ideally on a local server on your own computer. If the site won&rsquo;t load there, you&rsquo;ll often see the <a href=\"\/tutorials\/how-to-fix-localhost-refused-to-connect-error\/\">&ldquo;localhost refused to connect&rdquo;<\/a> error, which means the local server isn&rsquo;t running. It doesn&rsquo;t mean the clone failed.<\/p><h2 class=\"wp-block-heading\" id=\"h-static-vs-dynamic-website-cloning\"><strong>Static vs. dynamic website cloning<\/strong><\/h2><p>The difference between static and dynamic website cloning comes down to <strong>whether the site needs a server to build its pages<\/strong>.<\/p><p>A <a href=\"\/tutorials\/static-website\/\">static website<\/a> serves fixed files, so cloning it means copying only the HTML, CSS, JavaScript, images, and fonts. A <a href=\"\/tutorials\/dynamic-website\/\">dynamic website<\/a> builds each page on request, so a working clone needs the files, database, server settings, and application configuration.<\/p><p>That&rsquo;s why wget, HTTrack, and developer tools can&rsquo;t fully clone most CMS or ecommerce sites. They capture the output of a single visit, not the system that regenerates each page, so the copy shows frozen data and lacks a working backend.<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td><strong>Aspect<\/strong><\/td><td><strong>Static website<\/strong><\/td><td><strong>Dynamic website<\/strong><\/td><\/tr><tr><td><strong>Built from<\/strong><\/td><td>HTML, CSS, JavaScript, images, fonts<\/td><td>Files, database, and server-side code<\/td><\/tr><tr><td><strong>To clone, you need<\/strong><\/td><td>Page files and assets<\/td><td>Files, database, server settings, and app configuration<\/td><\/tr><tr><td><strong>Method<\/strong><\/td><td>Wget, HTTrack, developer tools<\/td><td>Backups, migration plugins, manual transfer<\/td><\/tr><tr><td><strong>Example<\/strong><\/td><td>Landing page, portfolio<\/td><td>WordPress site, ecommerce store<\/td><\/tr><\/tbody><\/table><\/figure><h2 class=\"wp-block-heading\" id=\"h-how-to-clone-a-wordpress-website\"><strong>How to clone a WordPress website<\/strong><\/h2><p>Cloning a WordPress website means <strong>copying both its files and database<\/strong>. You can do this with a plugin, a host-level tool, or manually.<\/p><p>Cloning and <a href=\"\/tutorials\/how-to-migrate-wordpress\/\">migrating a WordPress site<\/a> work the same way: you copy the files and database to a new location. The steps below can also help you move a site to a new host or domain. The three methods go from easiest to most technical.<\/p><h3 class=\"wp-block-heading\"><strong>Use a WordPress cloning plugin<\/strong><\/h3><p>A WordPress cloning plugin bundles your files and database into a downloadable copy, then rebuilds them on the new site. Duplicator and All-in-One WP Migration are two popular free options, so you don&rsquo;t have to edit the database or configuration files by hand.<\/p><p>All-in-One WP Migration exports your site as a single file, which you import into the new site&rsquo;s dashboard.<\/p><p>Duplicator gives you more control. Its steps look like this:<\/p><ol class=\"wp-block-list\">\n<li>Install and activate Duplicator on the original site.<\/li>\n\n\n\n<li>Build a copy, which Duplicator saves as two downloads: an archive of your site and a small installer file.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a566bd0c91a5\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a566bd0c91a5\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1999\" height=\"1258\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/duplicator-backup-build-completed-download-files.png\/w=1024,h=1024,fit=scale-down\" alt=\"Duplicator build complete screen with Installer and Archive download buttons\" class=\"wp-image-152058\" title=\"duplicator-backup-build-completed-download-files.jpg\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/duplicator-backup-build-completed-download-files.png\/w=1999,fit=scale-down 1999w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/duplicator-backup-build-completed-download-files.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/duplicator-backup-build-completed-download-files.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/duplicator-backup-build-completed-download-files.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/duplicator-backup-build-completed-download-files.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/duplicator-backup-build-completed-download-files.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Upload both files to the new site&rsquo;s <strong>public_html<\/strong> with a file manager or FTP client.<\/li>\n\n\n\n<li>Create an empty database on the new site for the clone.<\/li>\n\n\n\n<li>Open the installer by visiting your new domain followed by <strong>\/installer.php<\/strong> in your browser. This loads a setup page.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a566bd0cf6dd\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a566bd0cf6dd\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1952\" height=\"958\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/duplicator-installer-security-screen.png\/w=1024,h=1024,fit=scale-down\" alt=\"Duplicator installer security screen with the archive file name and Submit button\" class=\"wp-image-152059\" title=\"duplicator-installer-security-screen.jpg\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/duplicator-installer-security-screen.png\/w=1952,fit=scale-down 1952w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/duplicator-installer-security-screen.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/duplicator-installer-security-screen.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/duplicator-installer-security-screen.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/duplicator-installer-security-screen.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/duplicator-installer-security-screen.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1952px) 100vw, 1952px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><ol start=\"6\" class=\"wp-block-list\">\n<li>Enter the new database details when prompted, then let it unpack the site.<\/li>\n\n\n\n<li>Check that the clone works, then delete the installer file.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a566bd0d1141\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a566bd0d1141\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1830\" height=\"794\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/file-manager-installer-php-menu-delete-highlighted.png\/w=1024,h=1024,fit=scale-down\" alt=\"File manager right-click menu on installer.php with delete and other actions\" class=\"wp-image-152060\" title=\"file-manager-installer-php-menu-delete-highlighted.jpg\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/file-manager-installer-php-menu-delete-highlighted.png\/w=1830,fit=scale-down 1830w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/file-manager-installer-php-menu-delete-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/file-manager-installer-php-menu-delete-highlighted.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/file-manager-installer-php-menu-delete-highlighted.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/file-manager-installer-php-menu-delete-highlighted.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/file-manager-installer-php-menu-delete-highlighted.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1830px) 100vw, 1830px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p>As it runs, the installer replaces the old web address with the new one everywhere the database stores it. This helps you avoid the manual URL fix that often breaks hand-done clones.<\/p><p>Delete the installer file after confirming the clone works. It remains accessible at a public URL (<strong>domain.tld\/installer.php<\/strong>), so anyone who finds it could rerun the installer and overwrite or modify your site.<\/p><h3 class=\"wp-block-heading\"><strong>Use a hosting control panel tool<\/strong><\/h3><p>Many hosts let you clone a WordPress site you own straight from the control panel without a plugin or manual steps. This is the simplest option when your provider includes it.<\/p><p>On Hostinger, the Copy Website tool duplicates a WordPress site&rsquo;s files and database to another domain or subdomain on the same plan. It&rsquo;s available on the Premium <a href=\"\/wordpress-hosting\">managed hosting for WordPress<\/a> plan and higher.<\/p><p>To copy a WordPress site in hPanel:<\/p><ol class=\"wp-block-list\">\n<li>Go to <strong>hPanel &rarr; Websites<\/strong> and open the site&rsquo;s dashboard.<\/li>\n\n\n\n<li>In the left sidebar, select <strong>WordPress &rarr; Copy Website<\/strong>.<\/li>\n\n\n\n<li>Choose the destination domain or subdomain.<\/li>\n\n\n\n<li>Start the copy and confirm.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a566bd0d3546\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a566bd0d3546\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1999\" height=\"1133\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/hostinger-copy-website-domain1-to-domain2.png\/w=1024,h=1024,fit=scale-down\" alt=\"Hostinger Copy Website tool set to copy domain1.tld files and database to domain2.tld\" class=\"wp-image-152061\" title=\"hostinger-copy-website-domain1-to-domain2.jpg\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/hostinger-copy-website-domain1-to-domain2.png\/w=1999,fit=scale-down 1999w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/hostinger-copy-website-domain1-to-domain2.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/hostinger-copy-website-domain1-to-domain2.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/hostinger-copy-website-domain1-to-domain2.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/hostinger-copy-website-domain1-to-domain2.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/hostinger-copy-website-domain1-to-domain2.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p>The tool automatically rewrites internal links and database references, so the clone works on its new URL right away. It copies only to a root domain or subdomain, handles one site at a time, and processes subdomains individually.<\/p><p>Note that copying overwrites everything on the target domain, so the destination must be empty or ready to replace. It also only moves files and databases, so you&rsquo;ll need to recreate email accounts, FTP accounts, and SSH keys for the new domain yourself.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-coupon-wordpress-hosting\" href=\"https:\/\/www.hostinger.com\/cart?product=hosting:hostinger_business&amp;period=12&amp;coupon_cookie=WPTUTORIALS\"><img decoding=\"async\" width=\"2048\" height=\"600\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/05\/EN_WP_in-text-banner.png\/public\" alt=\"\" class=\"wp-image-128217\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/05\/EN_WP_in-text-banner.png\/w=2048,fit=scale-down 2048w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/05\/EN_WP_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/05\/EN_WP_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/05\/EN_WP_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/05\/EN_WP_in-text-banner.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/05\/EN_WP_in-text-banner.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure>\n<\/div><h3 class=\"wp-block-heading\"><strong>Clone WordPress manually<\/strong><\/h3><p>Manual WordPress cloning means moving the files and database yourself. It suits developers wanting full control or cases where other methods can&rsquo;t do the job.<\/p><p>To clone WordPress manually:<\/p><ol class=\"wp-block-list\">\n<li><a href=\"\/tutorials\/backup-wordpress\/\">Back up the full WordPress site<\/a> before you start, so you can roll back if something goes wrong.<\/li>\n\n\n\n<li>Download the WordPress files via a file manager or <a href=\"\/tutorials\/filezilla-ftp-configuration\/\">an FTP client such as FileZilla<\/a>.<\/li>\n\n\n\n<li>Upload the files to the new location.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a566bd0d6459\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a566bd0d6459\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1428\" height=\"1076\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/ile-manager-upload-dialog-file-or-folder.png\/w=1024,h=1024,fit=scale-down\" alt=\"File manager upload dialog in public_html with File and Folder options\" class=\"wp-image-152063\" title=\"ile-manager-upload-dialog-file-or-folder.jpg\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/ile-manager-upload-dialog-file-or-folder.png\/w=1428,fit=scale-down 1428w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/ile-manager-upload-dialog-file-or-folder.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/ile-manager-upload-dialog-file-or-folder.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/ile-manager-upload-dialog-file-or-folder.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/ile-manager-upload-dialog-file-or-folder.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1428px) 100vw, 1428px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>Export the database from phpMyAdmin, then import it at the destination.<\/li>\n\n\n\n<li>Update <strong>wp-config.php<\/strong> with the new database name, user, and password.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a566bd0d7ec3\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a566bd0d7ec3\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1380\" height=\"762\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/wp-config-php-database-settings.png\/w=1024,h=1024,fit=scale-down\" alt=\"wp-config.php database settings showing DB_NAME, DB_USER, DB_PASSWORD, and DB_HOST\" class=\"wp-image-152067\" title=\"wp-config-php-database-settings.jpg\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/wp-config-php-database-settings.png\/w=1380,fit=scale-down 1380w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/wp-config-php-database-settings.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/wp-config-php-database-settings.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/wp-config-php-database-settings.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/wp-config-php-database-settings.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1380px) 100vw, 1380px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><ol start=\"6\" class=\"wp-block-list\">\n<li>Update the old web address to the new one using a tool that does it safely, such as WP-CLI.<\/li>\n\n\n\n<li>Test the clone from end to end.<\/li>\n<\/ol><p>You&rsquo;ll find <strong>wp-config.php<\/strong> in the WordPress root, usually the <strong>public_html<\/strong> folder. If you&rsquo;ve changed hosts, check <strong>DB_HOST<\/strong> there too, since it&rsquo;s often <strong>127.0.0.1<\/strong> or an address your host gives you, not <strong>localhost<\/strong>.<\/p><p>For the web address, let the tool make the change instead of editing the database by hand. WordPress stores that address in several spots, and one good tool updates all of them at once.<\/p><p>Finally, test the clone. If some pages show a 404 error, open <strong>Settings &rarr; Permalinks<\/strong> and click <strong>Save Changes<\/strong>, which usually fixes it.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-duplicate-a-website-builder-site\"><strong>How to duplicate a website builder site<\/strong><\/h2><p>Duplicating a website builder site <strong>depends on the platform, since each builder controls how much file access you get<\/strong>.<\/p><p>Many builders don&rsquo;t give direct access to files or a database, so the manual approach won&rsquo;t work. The builder&rsquo;s built-in duplicate feature is usually the only method.<\/p><p>Some builders include a one-step duplicate option, while others direct the request through their support team.<\/p><p>On <a href=\"\/website-builder\">Hostinger Website Builder<\/a>, you can duplicate a site from hPanel in a few clicks:<\/p><ol class=\"wp-block-list\">\n<li>Open <strong>hPanel &rarr; Websites<\/strong>.<\/li>\n\n\n\n<li>Find the site, click the three-dot icon, and select <strong>Duplicate website<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a566bd0d9c7b\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a566bd0d9c7b\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1999\" height=\"1020\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/hostinger-websites-menu-duplicate-website-highlighted.png\/w=1024,h=1024,fit=scale-down\" alt=\"Hostinger Websites list with the three-dot menu open showing site options\" class=\"wp-image-152062\" title=\"hostinger-websites-menu-duplicate-website-highlighted.jpg\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/hostinger-websites-menu-duplicate-website-highlighted.png\/w=1999,fit=scale-down 1999w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/hostinger-websites-menu-duplicate-website-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/hostinger-websites-menu-duplicate-website-highlighted.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/hostinger-websites-menu-duplicate-website-highlighted.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/hostinger-websites-menu-duplicate-website-highlighted.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2026\/07\/hostinger-websites-menu-duplicate-website-highlighted.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Choose a plan to host the copy, then confirm.<\/li>\n<\/ol><p>The builder creates the copy on a temporary domain you can preview and publish. Check that all pages and images are carried over before going live.<\/p><p>Duplicating a Hostinger Website Builder site doesn&rsquo;t copy your online store products and settings, so you&rsquo;ll need to set those up again on the copy.<\/p><p>The copy also carries over any API keys and credentials from the original site. Remove those keys from the clone, so the two sites don&rsquo;t share connections to the same external accounts.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-website-builder\" href=\"\/website-builder\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-Builder_in-text-banner.png\/public\" alt=\"\" class=\"wp-image-100488\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-Builder_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-Builder_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-Builder_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-Builder_in-text-banner.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div><h2 class=\"wp-block-heading\" id=\"h-when-should-you-clone-a-website\"><strong>When should you clone a website?<\/strong><\/h2><p>Clone a website when <strong>you need a safe copy to work on, move, or restore<\/strong>. The most common reasons are:<\/p><ul class=\"wp-block-list\">\n<li><strong>Migration.<\/strong> Move a site to a new host or domain with little downtime.<\/li>\n\n\n\n<li><strong>Redesign.<\/strong> Experiment on a duplicate before launching the new version.<\/li>\n\n\n\n<li><strong>Local development.<\/strong> Run a copy on your own machine to build offline.<\/li>\n\n\n\n<li><strong>Learning.<\/strong> Study how a layout is built by recreating its frontend.<\/li>\n\n\n\n<li><strong>Recovery.<\/strong> Rebuild quickly after a cyber attack or data loss.<\/li>\n<\/ul><p>Clone, backup, and staging aren&rsquo;t the same. A clone is a full copy you manage, a backup is a restore point you keep in reserve, and a staging site is a test copy you publish once the changes work.<\/p><p>For small, routine changes, you usually don&rsquo;t need a clone. Back up the site first, then make the edit.<\/p><p>Many WordPress hosts, like Hostinger, let you create a <a href=\"\/tutorials\/wordpress-staging-environment\/\">staging environment<\/a> for your site. Here, you can test changes safely, then apply them to the live version once everything works, without risking the version visitors see.<\/p><h2 class=\"wp-block-heading\" id=\"h-what-to-do-after-cloning-your-website\"><strong>What to do after cloning your website?<\/strong><\/h2><p>After cloning a website, <strong>test it thoroughly and secure it before it goes live or stays online<\/strong>. Use this checklist to catch broken features and other issues early:<\/p><ul class=\"wp-block-list\">\n<li>Test every form, button, and interactive feature.<\/li>\n\n\n\n<li>Check that internal and external links point to the right places.<\/li>\n\n\n\n<li>Confirm that images, videos, and other media load from the correct URLs.<\/li>\n\n\n\n<li>Update any old-domain URLs left in the database with a safe tool like WP-CLI or a search-and-replace plugin.<\/li>\n\n\n\n<li>Reissue an SSL certificate and fix mixed-content warnings.<\/li>\n\n\n\n<li>Point canonical tags to the correct version of the site.<\/li>\n\n\n\n<li>Set <strong>robots.txt<\/strong> and search visibility settings to match the copy&rsquo;s purpose.<\/li>\n\n\n\n<li>Update the sitemap so search engines find the right URLs.<\/li>\n\n\n\n<li>Hide any staging or development copy from search results to avoid duplicate content.<\/li>\n\n\n\n<li>Update or remove tracking IDs and API keys to prevent conflicts.<\/li>\n\n\n\n<li>Delete leftover backup archives and installer files.<\/li>\n\n\n\n<li>Reset passwords and database keys if the copy sits in a shared or team-accessible environment.<\/li>\n\n\n\n<li>Switch payment gateways to test mode on a development copy so you don&rsquo;t process real orders.<\/li>\n\n\n\n<li>Flush permalinks if pages return 404 errors.<\/li>\n\n\n\n<li>Allow 24 to 48 hours for DNS to propagate if you also moved the domain.<\/li>\n<\/ul><p>If you copied a single page locally to study it, rebuild the layout using your own HTML, CSS, JavaScript, copy, and branding, just as you would when <a href=\"\/tutorials\/making-website-with-html\/\">building a website with HTML<\/a> from scratch.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To clone a website, copy its design and content to a new location using an AI cloner, browser developer tools, [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/tutorials\/clone-website\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":411,"featured_media":152055,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to clone a website","rank_math_description":"Learn how to clone a website using AI tools, wget, HTTrack, browser tools, CMS plugins, or a manual file and database transfer. See when to use each method.","rank_math_focus_keyword":"clone website","footnotes":""},"categories":[22601,22603],"tags":[],"class_list":["post-69634","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website","category-website-development"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/clone-website","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/como-clonar-um-site","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/cloner-un-site-web","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/como-clonar-una-pagina-web","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/cara-clone-website","default":0},{"locale":"de-DE","link":"https:\/\/www.hostinger.com\/de\/tutorials\/website-klonen","default":0},{"locale":"it-IT","link":"https:\/\/www.hostinger.com\/it\/tutorial\/come-clonare-un-sito-web","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/clone-website","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/clone-website","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/clone-website","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/como-clonar-um-site","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/clone-website","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/clone-website","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/como-clonar-una-pagina-web","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/como-clonar-una-pagina-web","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/como-clonar-una-pagina-web","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/clone-website","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/clone-website","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/69634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/users\/411"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/comments?post=69634"}],"version-history":[{"count":32,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/69634\/revisions"}],"predecessor-version":[{"id":152068,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/69634\/revisions\/152068"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media\/152055"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media?parent=69634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/categories?post=69634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/tags?post=69634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}