Średnia ocena
Data publikacji
Czas czytania

You've received a message from your hosting provider: it's time to move your company website. You feel the tension building up because you know that stories of lost data and disappearing customers are not fiction.
Website migration is more than justmoving files from one place to another. It's a complicated process that requires attention and precise planning. For a business owner, it's often a matter of maintaining the continuity of online business and maintaining search engine rankings.
Migration is often necessary for a variety of reasons: it may be the result of a need tomove to better hosting, problems with the current supplier or the desire for technological development of the company. Sometimes it is the result of a rebranding or the need to increase the performance of the site.
The uncertainty surrounding the migration is understandable. Concerns about data loss, a drop in Google rankings, or site downtime are perfectly reasonable. One small mistake can cost months of work to rebuild.
But a well-executed migration is a chance for improvement: better performance, better security and sometimes lower hosting costs. It can also be an ideal time tooptimizing and upgrading the site.
In this article, I will take you through the process step by step. You'll learn how to plan your migration, secure your data and move your site without damaging your traffic and SEO position. I'll also share tips on how to avoid the most common pitfalls and what to do after the move is complete.
Successful migration begins long before the first file is transferred. Acting quickly is a common cause of problems that could have been foreseen.
To begin with, make a thorough inventory of what you already have. Go through each page and make a note ofall functionalities, such as formarze contact, store, newsletter or social media integrations.
Look into Google Analytics or other analytical tools. Which sites attract the most users? These will require special care during the migration. It's often the case that 20% of pages are responsible for 80% of visits.
Also take a look at the file structure on the server. Aren't there any old, unused folders by any chance? Additional domains or subdomains? All of these should be included in your transfer plan.
This is also a great time to identify problems to solve. Maybe some plug-ins are outdated? Or the database needs a decent overhaul? Migration is a great opportunity for a fresh start.
Document each element thoroughly. The list may seem long, but it will save you a lot of time during the migration itself. Pay special attention to external integrations, such as online payments, CRM systems or marketing tools.
Choosing the right time can determine the success of your entire business. For example, if you run a school supply store, August is definitely a bad time to migrate.
Analyze your traffic statistics for the past year. When do you have the fewest visitors? These are the periods when even a short break in your site won't hurt your business.
Also avoid periods of important advertising campaigns or promotions. If you are planning Black Friday, the migration should take place at least a month in advance.
Reserve at least a week for possible complications. In practice, this means that if the migration is going to take a day, schedule it a week before an important business deadline.
The best time is often on the weekend or in the evening, when there is less traffic. However, make sure you will have access to technical support in case of problems.
During any migration, it's worth assuming that something could go wrong. That's why having a backup is not just an option, but a necessity.
A full backup should include all site files and a complete database. It is not enough to just download the folder from WordPress or other application files. It is also necessary to include server configuration, SSL certificates and any additional scripts.
Most hosting panels offer automatic backups. Nevertheless, it is recommended to make a fresh backup yourself before migration. You can download the files via FTP and export the database via phpMyAdmin or a similar tool.
An important step that is often overlooked is to test the backup. Install it in a test environment and make sure everything works properly. Discovering that the backup is corrupted during the migration is a really unpleasant surprise.
Keep a backup in at least two different locations. Optimally, you should keep one copy on your local computer and the other in the cloud or on an external drive. In case of problems with your new hosting, you will be able to access the copy from anywhere.
Document the structure of your site. Make a note of PHP versions, databases and technologies used. It's also a good idea to record special configurations, such as unusual file permissions, custom paths or integrations with external services.
Also prepare a backup plan. In case of problems, you need to know how to quickly restore the old version. This includes restoring DNS records, undoing redirects and reactivating the old hosting.
Some business owners put off making copies until the last minute. This is a mistake - it's a good idea to have a backup ready a few days before the migration. This gives you time for testing and possible adjustments.
Remember: a good backup is the difference between a minor complication and a major business problem.
The moment of truth has arrived. You already have a backup and a plan of action. Now it's time to actually move the site to the new server.
Start by transferring files via FTP or SFTP. Although most modern hosting panels offer file managers, tools like FileZilla can provide better control over the process, which is especially important for large sites where transfers can take a long time.
First of all, upload the most important files, such as the main application folder, images and documents. Leave items that can be easily restored from a backup for last, in case something goes wrong.
Exporting a database requires special attention. In phpMyAdmin, use the "Export" option with the "Custom" setting. The "Add DROP TABLE" option can save you a lot of trouble if you have to repeat the import. For large databases, consider exporting in chunks or using command line tools.
Importing on a new server may not always go smoothly. Differences in MySQL versions can sometimes cause errors. If you encounter problems, check the server's error log - they can often provide clues to a solution.
Setting up the environment on a new server is more than just copying files. Check the PHP version - it should be compatible or newer than on the previous hosting. Make sure all required PHP extensions are installed, which is especially important for e-commerce sites or advanced CMS.
After moving the data, it is a good idea to do some basic verification. Make sure that the main files are in place and that the database contains all tables. Compare sizes - drastic differences may suggest an incomplete transfer.
The first thing you need to change is the database connection settings. In WordPress you'll find them in the wp-config.php file, and in Joomla in configuration.php. Enter the new database access data - server name, login, password and database name.
Also check the paths in the configuration files. If the new hosting has a different directory structure, the application may look for files in the wrong places. This often applies to paths to uploads or cache folders.
File permissions are a common cause of problems after migration. Most files should have permissions of 644, and directories should have 755. However, some applications may require special settings. If the site displays a 500 error, start checking with permissions.
Don't forget about .htaccess files - they often contain important redirects and security settings. Sometimes they need to be adjusted for a new server environment.
Test all key features before declaring success. Check contact forms, payment systems, user logins. A configuration error may not be immediately visible, but only reveal itself with a specific user action.
Moving files is one thing, but the real excitement comes when we have to direct traffic to a new server. It's a bit like moving an entire company, but with operations without downtime.
Start preparing to change DNS records a few days before the migration. Log into your domain management panel and create new A entries that point to the new server IP address. However, don't publish them for now, just prepare them.
Important, and often overlooked: lower the TTL (Time To Live) for all DNS records. Preferably to a value of 300 seconds, and 24-48 hours before the migration. That way, when that time comes, the changes will propagate much faster.
When the new server is ready, enter the new DNS records. Don't do it all at once. Start with test subdomains, then the main domain. If you have several domains pointing to the same site, change them gradually, every few hours.
Monitoring propagation requires patience. Use tools such as whatsmydns.net or dig to track the progress of changes on various DNS servers around the world. The process can take from a few minutes to as long as 48 hours, although it is usually completed within 4-6 hours.
During this time, you may notice that traffic is split between the old and new servers. This is normal and expected.
301 redirects are your hedge against changes in URL structure. Configure them on the new server even before the DNS change. If you are changing the folder structure or page names, every old address should have a redirect.
Subdomains are often overlooked when migrating. A blog at blog.yourjadomena.co.uk, a store at store.yourjadomena.co.uk or a customer panel - each requires a separate DNS configuration and may need a separate migration.
Check email performance on the first day after the DNS change. MX records usually remain unchanged, but if your web host offers integrated mail, this may need to be updated. Test sending and receiving messages on all company accounts.
If you are using an external email service like Gmail or Outlook, make sure your SPF, DKIM and DMARC records still point to the correct servers.
Site migration is a moment when years of SEO work on Google can be wiped out in the blink of an eye. However, with the right preparation, you can get through the process without loss and sometimes even with benefit.
Start by creating a thorough list of all relevant URLs. Don't just focus on the main pages - include blog posts, product pages, categories and all sub-pages that generate organic traffic. In Google Analytics, under "Behavior > Site Content > All Pages," you'll find the most important URLs for the past 12 months.
Preparing 301 redirects is a time-consuming but necessary task. Assign each old URL a new destination. If you change the structure of URLs during the migration, create a map in a spreadsheet: the old URL in the first column, the new one in the second.
Keep the existing URL structure wherever possible. For example, if the product page was at/products/product-name, try to maintain this scheme on the new server. Changing the URL for Google means a new page - avoid unnecessary complications.
Prepare redirects before the DNS change, but only run them once traffic starts going to the new server. In Apache use the .htaccess file, and in Nginx configure the redirects in the server configuration file.
Update the XML sitemap on the first day after the migration. Remove outdated URLs, add new ones. If you are changing the structure, create a completely new sitemap that reflects the current site layout.
Google Search Console is your direct connection to the search engine. If you are changing your domain, use the "Change of Address" function in your old Search Console profile. For migrations within the same domain, simply upload a new sitemap.
Create a new profile in Search Console for the new version of the site as early as the day of the migration. Upload the new XML map and monitor the 404 error reports. Each such error means potentially lost positions.
Indexing after migration can take from a few days to a few weeks. Use the "URL Inspection" tool to check whether key pages have been indexed. You can also request that the most important URLs be rescanned.
Track the positions of key phrases daily for the first two weeks. Small drops are normal, but drastic changes may indicate redirection or indexing problems. Tools such as SEMrush or Ahrefs can help you monitor position changes in real time.
Once the DNS changes begin to propagate and traffic is directed to the new server, only then comes the time for the real test - whether everything works as it should.
On the first day after the migration, play the role of the most demanding customer. Fill out every contact form and make sure messages are going to the right addresses. You may find that the script that sends emails needs additional configuration on the new server.
If you manage an online store, thoroughly test the shopping process. Add products to the shopping cart, go through checkout and check that invoices are generated correctly. Pay special attention to the payment system - an error here can lead to lost orders before you notice it.
It is worth testing the payment system separately, using a small amount. Payment gateways often vary in their settings, depending on the production and testing environment. Check carefully that payments are going to the right bank account.
Responsiveness on mobile devices may change after migration. Differences in server configuration may affect how CSS or JavaScript loads. Test the site on phones and tablets, paying attention to forms and navigation menus.
Don't forget functions that, although used less frequently, are crucial - such as newsletters, customer panel logins and downloads. These are easy to overlook in routine testing.
Page loading speed can change significantly after a migration. Use tools such as GTmetrix or PageSpeed Insights to compare the new results with previous measurements. While the new server may be faster, an improperly configured cache can ruin everything.
Uptime is a key indicator in the first few weeks. Set up monitoring in UptimeRobot or a similar tool. This will keep you up to date on problems, often faster than the hosting itself, which may take time to detect and resolve.
The server load shows how the new hosting is handling your traffic. In the hosting panel, watch CPU and RAM usage, especially during peak hours. Sudden spikes may suggest suboptimal settings or incompatibility with the new environment.
Performance optimization may need to be tailored to the specifics of the new server. The cache may need to be reconfigured, images compressed, and the database optimized. The first few days after migration are an excellent time for such fine-tuning.
Even the most elaborate migration plans can encounter obstacles. By knowing these common problems ahead of time, you'll be able to solve them more easily with peace of mind.
When a migration encounters difficulties, it is important to keep a cool head and have a backup plan in place. If something goes wrong, don't try to improvise - go back to the backup and restore the old server. It's better to postpone the migration for a week than to lose access to the site for a few days. Always have instructions ready for undoing DNS changes and reactivating the old hosting.
Database problems often cause white pages to appear after migration. They are usually due to differences in MySQL versions or incorrect access data. Take a look at the server's error logs, there you will find more specific information instead of guessing. If the database import failed, try splitting the export into smaller parts or change the encoding to UTF-8.
PHP version conflicts can completely mess up your site's performance. Older WordPress modules or outdated plugins may not work with newer PHP versions. Before migrating, check that all extensions you are using are compatible. If problems arise, temporarily set a lower PHP version on the new server, and then gradually upgrade components.
Loss of functionality is often the result of configuration oversights. Integrations with external APIs, connections to payment systems or SMTP settings for mail - each of these items needs to be verified. Make a list of all external services even before migration.
Google indexing problems may appear a few days after the migration. If you notice pages disappearing from search results, check that redirects are working properly and that the new sitemap has been accepted in Search Console. Sometimes it's worth manually submitting the most important URLs for re-indexation.
A drop in organic traffic in the first few days is a natural side effect. Google needs time to rescan the site. However, if traffic drops more than 20-30%, it may suggest more serious problems with redirects or content availability.
First steps:
Useful tools:
Do you need help?
Recommended articles:
⚠️Important
Site migration is a complex implementation that requires an experienced team. We recommend consulting an expert before making a decision - a poorly executed migration can cost 2-3x more than planned.
Rate this article

Learn more about Wordpress Setup. A practical guide with concrete tips and examples. Learn best practices and avoid common mistakes.

Learn how HTML can help you manage your site. Update content yourself and avoid webmaster costs. Discover practical tips!

Learn more about CSS Responsive For Beginners. A practical guide with concrete tips and examples. Learn best practices and avoid types