Hit enter to search or ESC to close
Thinking WordpressThinking WordpressThinking Wordpress
  • Tips n’ Tricks
  • Guides
  • Plugins
  • WordPress
  • Developing
  • SEO tips
  • Server
Backup WordPress, Transfer To A New Web-Host and Change The URL
Wordpress

Backup WordPress, Transfer To A New Web-Host and Change The URL

By John Allen October 3, 2021 No Comments

Backup Your Website To Your Computer

  1. Download a copy of Filezilla, it’s a rock solid open-source program for everyone to use for free.
  2. Get your current web-hosting FTP information (usually found in the web-host’s Control Panel information or your web-host’s website information page).
  3. Install Filezilla, when installed input your FTP login information in the “Site Manager”.
  4. Make sure that you can successfully connect to your hosting space and view the files contained within displayed on the right pane.
  5. Find a suitable local backup location, preferably on a removable hard drive or on your own computer’s file system on the left pane, example: C:UsersMeWebsiteBackup.
  6. In Filezilla with example: C:UsersMeWebsiteBackup selected in the left side pane, right click on the root of your website directory in the right pane and choose to “download”.
  7. If Filezilla prompts for a duplicate file message, choose the “rename” option and just rename the files index1.HTML, index2.HTML and so forth. You can monitor the completed and errored downloads on the below tabs in Filezilla.

Change Your Database Name, User and Password in Wp-Config

1. Download with FileZilla the WP-Config file in the root of your WordPress installation or edit it by using the built in edit function in your web-host’s Control Panel. Make a copy for safe keeping in case something goes wrong.

2. Change the following values DB_NAME, DB_USER and DB_PASSWORD to reflect your new database name, username and password: <?php

// ** MySQL settings ** //

define(‘DB_NAME’, ‘Your Database Name’);

define(‘DB_USER’, ‘Your Database Username’);

define(‘DB_PASSWORD’, ‘Your Database Password’)

Save your changes and upload the file back into your hosting space if needed, overwriting the original.

Edit Your Functions.php Temporarily

Note: To minimize excessive linking, “*example” will be used in place of you typing in your own website’s address complete with the h.t.t.p:// <— please leave out the periods when typing it in.

1. We will tell WordPress about your Domain Name change without actually logging in using the functions.php file. This file can be found in your Wp-contents/themes/ folder. If one is not present you can create one using notepad or a similar program and naming it functions.php.

2. Make a copy for safe keeping in case something goes wrong. Open functions.php up for editing, either locally or editing in your Control Panel.

Replace the *example with your new domain name:

<?php

update_option(‘siteurl’,’*example‘);

update_option(‘home’,’*example‘);

3. Save your changes and upload the file back into your hosting space if needed, overwriting the original or just choose save if editing within the Control Panel.

4. Access your WordPress site “*example” x3 times and then attempt to login “*example/ wp-admin”. At this point you will be able to login or choose the password reset option to do so.

You can now remove the:

update_option(‘siteurl’,’*example‘);

update_option(‘home’,’*example‘);

From functions.php

Clean Up Any Traces of Your Old Domain (Optional)

Note: This is optional, use only if your website still appears to be broken.

1. We will use a small program called Search and Replace DB2, grab a copy of Search and Replace DB2 here.

2. Download, extract and rename the Search and Replace DB2.php to whatever you like just leaving the.php extension.

3. Upload the renamed Search and Replace DB2.php into the root directory of your WordPress installation directory.

4. Then in your web browser, go to *example/renamedfile.php

5. Just follow the onscreen instructions to replace all instances of your old domain to your new one. *Note: you may have to run this a couple of times.

6. When this has been completed, for security purposes, please delete the Search and Replace DB2 renamed file from your web-space.

HI! MY NAME IS YIANNIS
I live in Athens, Greece. I'm thinking and using Wordpress for the last 10 years. Every day, I learn something new and I'm here to share it with people who care.

What’s Trending

  • Link Building Tricks With CommentLuv and KeywordLuv May 26, 2021
  • How to build a WordPress starter package June 7, 2020
  • How to reduce your wordpress size April 16, 2020

Recently Written

  • MySQL Admin Password and Plesk Parallels 10Check What Is Best For You: Dedicated Server or VPS Server? March 13, 2023
  • 5 Simple Steps to Choose WordPress HostingSmall Business Web Hosting: What Is Grid Hosting? March 12, 2023
  • MySQL Admin Password and Plesk Parallels 10Do You Know Cloud Computing and Cloud Hosting? March 11, 2023
  • Previous PostBringing Social Media Traffic Home - Integrating Drupal With Various Social Media Plugins

  • Next PostA Tricky Tracky Thing - Your Web Site Stats

You May Also Like

Thinking of Updating Your WordPress Site to Gutenberg? Wordpress

Why Shared Hosting Is So Cheap?

John AllenNovember 29, 2022
Thinking of Updating Your WordPress Site to Gutenberg? Wordpress

How To Start Blogging: 7 Steps To Starting A Blog

John AllenNovember 29, 2022
Thinking of Updating Your WordPress Site to Gutenberg? Wordpress

Benefits to Hosting Your E-Commerce Site on A Dedicated Server

John AllenNovember 25, 2022

© 2024 Thinking Wordpress. All Right Reserved

  • Tips n’ Tricks
  • Guides
  • Plugins
  • WordPress
  • Developing
  • SEO tips
  • Server
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT