Change Host – A Step By Step Guide To Change Your Host

This page explains the migration process if you come from another hosting. Here are the different steps you can follow in order to migrate as calmly as possible and avoid cuts.

Quick version

The rest of the tutorial explains in a comprehensive way what to do to change host. For people who already have some knowledge (sending by FTP , database recovery), here is the “fast” version:

Order a hosting space, if you want to transfer your domain name, take the offer with domain and fill in your existing domain

Recover all your data using an FTP client from your former provider

Also get your databases (phpmyadmin)

Put your data online on your Web Hosting space, in the folder “public_html” if this is your main domain

Create a database, a user and give the rights to the user on the database

Modify the configuration file of your site if necessary to specify these new parameters

Test that your site seems to work well with the temporary address provided

Recreate the email accounts you had via cpanel’s “email accounts” tool

Configure your email clients (outlook, thunderbird)

Make a DNS change at your service provider to specify our servers and 24h later the domain points to your accommodation

Make sure everything works and correct (from the start) if necessary

Apply for domain transfer if you wish

Order your accommodation offer

The first step, if not already done, is to order your accommodation offer . When you register, you will have the choice between two offers: the offer with a domain offered, the offer without the domain name.

Take the offer with the domain name offered, if you want to transfer the domain name you currently have with your provider. In this case, when registering, specify the domain you already have.

Take the offer without domain, if you do not or do not want to transfer a domain name. Your domain name offered with hosting is not lost . If one day you want to take a domain name, you can contact us at support and your offer will be transformed into a classic offer with domain.

As soon as your order is validated, you will receive one or two messages depending on the chosen offer:

The first mail ” welcome to o2switch ” contains all your accesses (cPanel, FTP ) as well as a temporary address of the form ” ” (in the case of a domain transfer or a purchase without domain) allowing you to access your hosting space and start putting things online.

If you have requested the transfer of a domain name , you will receive a second email called ” domain transfer ” in which we explain all the steps of transfer.

Pre-install your websites

The second step is to pre-install your websites, using your access and the temporary address you have (

The process of migrating a website varies depending on the types of sites you have. Is it a CMS , a site developed by hand, a site developed using software?

Here is the generic procedure to transfer a website, a little further in this guide you will find more specific procedures (for wordpress, Joomla and other known systems).

Setting the domain name on your cPanel account

The first step in installing your website is to define your domain name on your cPanel space. Two cases are possible:

it’s your main domain name, specified during your order, in this case you do not need to do because this domain name is already associated on your cpanel space

it is an additional domain or an “only one-off, no domain” command. In this case, use the companion domain tool of your cPanel account to associate your domain name with a directory of your hosting space.

Retrieve and return your data

To begin, you must retrieve all the data that is currently at your current provider. For this, you must have used an FTP client to connect to your remote server. We recommend Filezilla which is a well-known FTP client , easy to use and reliable.

Start by connecting to your current provider with Filezilla, the software will ask you 3 parameters, normally provided by your provider (look in the first messages received or request new access):

The host: usually the address of your site, or ftp.yourSite.f

Login: a login ID

Password: a password for your FTP account

When you are connected, retrieve the data from your website on your computer, then send it back to your hosting space (this time, by connecting with the accesses given in the mail “welcome to o2switch”).

If you have trouble, you can follow this guide on Filezilla:


Configure and understand the Filezilla FTP client

Online repository of databases

If you have a modern site, using a CMS such as Joomla or wordpress hosting, you will need to recover your databases and then re-import them to your hosting space.

To recover your databases, look for a phpmyadmin tool at your current provider. The latter allows you to manage your databases and export them to recover a backup. As soon as you have found this tool, log in (with the accesses that your provider will give you) and select the database in the left menu, then click on export in the present menu near the top of the screen. You must have something similar:

Exporting a database in phpmyadmin

Exporting a database in phpmyadmin

If you do not have the “phpmyadmin” tool, you certainly have an equivalent, look for an option to recover a backup, a database dump. If you have a .sql or .sql.tar.gz file or even .dump, it should work.

On your hosting space, on cPanel, follow the steps of creating a database, a user and assigning rights as explained in this guide:

Database creation, users and rights management

Then, import the backup of your database with the phpmyadmin tool of cPanel.

Editing your site’s configuration files

You will probably have to modify the configuration files of your website because things will probably change compared to your former provider, would be only the connection information to your database.

Unfortunately this configuration depends on the content system you use for your website:

if you have a wordpress site , you will have to modify the wp-config.php file present at the root of your site and modify the parameters for the connection to the database. For example :

Otherwise, look for a config.php file or settings.php or connection.php (or something similar). To help you find this file, you can open any PHP file from your website and look at the first lines. Very often, you will find an “include (conf.php)” telling you where is the configuration file (which must be loaded on most of your pages, in the headers).

Test your site

The deposit of your website and configuration of the latter is normally completed. You can test that it works well using the temporary address that is provided in your welcome email.

Attention, all sites or CMS will not work with the temporary address that is provided because they detect that this is not the “real” address of the site and make a redirection. For example, you will only be able to test the home page of a wordpress site, secondary links pointing to your real domain (which is not pointing to your hosting space yet). If you really want to test this, you can modify your hosts file on your computer to make it “believe” that your site is hosted on our servers (before making the real transfer).

Email configuration

As soon as your site is online and before you do the final DNS scoring , you can create all your email addresses, in advance, on your cPanel account to generate the server-side configurations and not lose any mail during the change process. DNS .

For this you can consult these tutorials:

Create email addresses with the email accounts tool

Set up your email client

Domain name clocking

When you have pre-installed your website, tested that it works correctly and created your email addresses in advance on your cPanel space, you have to point the domain name to your hosting space. We recommend doing this in two steps:

first a change of DNS to point the domain to our servers (it takes 24 hours on average)

then (if you wish), a complete transfer of the domain name (can take between 5 and 7 days, which depends on your domain provider who must confirm the operation).

During one or other of these operations, your site is always accessible. During the DNS change stage , visitors (and mails) will arrive randomly for 24 hours at your old provider or at o2switch (but if the emails and sites are configured “two sides”, there is no loss or very little).

During the complete transfer of the domain, the latter points to where it is configured, the operation is more administrative than technical.

Changing DNS servers

For the change of DNS , you must specify our DNS servers which are and . Most hosts offer a tool directly accessible from the client area to make this change (look for a tool “change DNS servers “).

You can consult the documentation page which explains how to make this change in most known hosts (ovh, 1 & 1, bookmyname, etc …):

  • How to change the DNS servers at my registrar?
  • Complete transfer of the domain name

For the complete transfer of the domain name, simply reply to the mail “domain transfer” that you received from o2switch during your order with your transfer code and confirmation that your domain is unlocked.


You can find this information in your customer record at your domain provider or on request.


You can consult our guide which explains this approach at most known providers:


How to unlock and recover the transfer code

If you have not received your email “domain transfer”, make sure that the domain name is ordered on your customer card or associated with your hosting offer. For more information on this subject, you can consult this page:

How to transfer a domain at o2switch


The transfer of your website, your email addresses and your domain name is now complete. If you have followed this guide and thoroughly tested in advance that everything works, you should not have a problem.

If you have trouble transferring your site, or if you think there is a lack of information about this guide, do not hesitate to contact support .

Leave a Reply

Your email address will not be published. Required fields are marked *