In this article, we will talk about moving a WordPress site from one hosting provider to another; from hosting to Denwer (using Denver, you can make a full-fledged local host), as well as to a new Domain name or just another directory. There can be a lot of reasons for moving, we will not focus in more detail here, but we will only note that the most common reason is hoster dissatisfaction, which at one moment reaches its maximum. True, in most cases it will be enough to leave a request to the new host for the transfer, and he will complete this process for free (transfer from Denver is also free). Some have to change more than a dozen hosters, and only then it becomes clear which provider is the most optimal for them.

Common reasons for changing a domain name is the imposition of filters on the platform search engines or getting banned.

Sometimes these moments can be solved, but often you have to choose a new domain and start promotion from the beginning. However, it does not matter at all what moments led you to the need to transfer.

Perhaps you just needed to deploy a version of your site on your computer in order to perform any work (working on a localhost using Denver is many times faster, and moreover, with this version you can do anything with settings and plug-ins, without any fear for the performance of the web version). We advise you to have an offline version of your site, just in case. Also note that with the help of Denver you can work with an unlimited number of sites.

Transferring a WordPress site to another host

Consider first the first method of transferring the Vodpress site. So, to start, you need to get to the old host and backup the entire current file system and databases. Often, backups are created in the hosting root directory in archive format. To download these files, we recommend going via FTP (you can use, for example, FileZilla or Total Commander) or through file manager hosting. Download the created archives to your computer, extract the database from the archive in advance.

If the above method did not work, then you can get copies in another way. You should go to the hoster's file manager, select the entire folder where your site is located and click on "Create archive". After the archiving is completed, download the archive to your HDD, and do not try to download all the files of your site separately, because the probability of errors is too high; some of the files may not load at all, and the download process will take a lot of time.

Now go to the management section MySQL databases– phpMyAdmin. Select your database from the drop-down list, then click on the "Export" link and click "OK". That's it, now save the resulting file. After that, you will have a database dump in the form of a file with the .sql extension and a package with all site files on your disk.

Transfer from virtual to local host using Denver (and vice versa)

With the help of Denver, you need to upload files to its folder, for example: C:\WebServers\home\newresourse.ru\www. The database must be added via phpMyAdmin (without an internet connection, go to the URL: http://localhost). Similarly, you can get files from Denver and upload them to the virtual host you need.

Transferring data from a computer to a new hosting

The new hoster will need to go to the "Databases" section and add a new user and a new database, as well as come up with a password and be sure to remember it. Now we go to the phpMyAdmin panel, look for the "Import File" button and upload the .sql database to the new host.

After that, you need to find your archive with the files of the Vodpress site and upload it to ftp. Must be filled in desired folder, otherwise the site will not be recognized by the hosting (often, this is a folder called public_html, but it can also be called www, httpdocs or something else). Whatever it is named, the directory must be empty.

Set up a connection to the database and set permissions

We are looking for the wp-config.php file, and change the connection data in it:

define("DB_NAME", "your_database_name");
define("DB_USER", "database_user_name");
define("DB_PASSWORD", "database_password");

Additionally, you need to set attributes 777 for the wp-content/uploads directory and all internal directories. You can do this via ftp or in a regular manager. That's all, now your site has been uploaded to a new hosting, but do not forget about the domain name.

Linking a domain name to a new hosting

After completing all of the above, your site should already work with the new host, but you won’t be able to check this, because the domain will still be assigned to the old host. To correct the situation, you must:

  • Check with the new hosting provider for a DNS server. By the way, this info can be indicated in the letter that you received after registration;
  • Now go to your domain registrar's office. The registrar can be an old hoster or specialized services like 2domains.ru. In any case, in the domain control panel, you need to find the "Manage DNS servers" section and change the DNS data to new ones.

We'll have to wait a bit for the changes to take effect. Domain binding can take up to 3 days, but experience shows that after about 2-4 hours you will be able to use your site.

Moving WordPress to Another Domain or Folder

If your resource needs not only a hosting move, but also a domain change, then this is a completely feasible task, but still you will have to face some headaches. This is due to the fact that all paths in WordPress are impregnated absolute links, and this shortcoming will have to be dealt with manually. Well, what to do, let's talk about everything in order:

  1. After downloading the dump of the old database from the old hosting, you need to open it in an editor (for example, Dreamweawer) and change all records about the old domain to the new ones.
  2. Changes also need to be made in the robots.txt and .htacces files (we also replace all references to the old site with the new one);
  3. Making adjustments to the site files is optional, so if after completing the two points described above you have earned a site, then you can skip this one. To search, you will need to unpack all the files of your WordPress site, and look for mentions of the old domain in them.

Moving a site to another folder

To transfer the site to another folder, for example, to site.ru/blog, you need to make the following lines in the .htaccess file (changes in bold).

RewriteBase /blog/
RewriteRule . /blog/index.php [L]

Transferring a site using SSH

This is the easiest and most convenient option for transferring a site, and this method takes only 15-20 minutes. And besides, everything is almost completely automated, no extra gestures will be required. But in order to use SSH, you need to have shell access to your account, which will ultimately make it much easier migrating wordpress site. So:

  • In the hosting panel, you need to activate the entire site;
  • We launch the SSH client, log in with our account and make a backup using the command:

    mysqldump -u USERNAME -pPASSWORD BD_NAME > dump.sql

    (what they are responsible for, the fields name, password, and database name - we think it’s understandable; spaces should be exactly the same as it was done in the above command!).

You can use WinSCP as an SSH client - a very functional program! Damb is best packed into an archive, since it is perfectly compressed into an archive.

Now you need to go through the SSH client to your hosting folder and download the previously created archives and database using the commands: wget http://site.name/site-archive.zip
and wget http://site.name/dump.zip

The download process will be very fast, because all the files will be transferred to the new host, bypassing your computer's hard drive. The resulting archives now need to be opened using the control panel of the new host. The database is imported using the command (an empty database must be created beforehand):

mysql -u USERNAME -pPASSWORD -D BD_NAME< dump.sql

As you can see this technology simplifies the transfer of the WordPress site to another hosting. If the hands grow from the “right place”, then there is nothing complicated here.

Errors that occur when migrating WordPress

If your site has not launched, then here are some common examples of errors:

  • If a tab opens where you are prompted to install WordPress, it means that an error was made when importing the database. You can try dropping all tables and uploading a dump;
  • If you see the hoster's greeting, then most likely you did not delete the files from the public_html folder before unpacking the archive (you can try deleting the index.html file);
  • The error "Error establishing a database connection" pops up when the data in wp-config.php was incorrectly registered.

Now you know how to transfer a WordPress site to another host, as well as from Denver and back. We hope that after reading the material you have no questions left, and if you have any, write them in the comments.

About 17% of websites are built on the WordPress platform. This CMS is gaining popularity in most developer circles. What about existing sites, on other engines or without them at all? Does this mean that moving a site to a wordpress platform will take a lot of time, effort and money? Or do you need to start all over again?

Moving a website to WordPress is actually easier than you might think. In this article, we will walk through the process of moving a website step by step, to real example. We will try to cover and discuss all the existing problems with this.

Basic Steps

Here are the top things to keep in mind when migrating your site to WordPress:

  1. Evaluate an existing site. Work carefully when viewing the pages of an existing site. Define all content types (pages, photo galleries, resource pages, etc.), consider fields and forms. Write everything down on paper and create backup existing site.
  2. Prepare the habitat for the new site. Set up WordPress and get everything ready to import content.
  3. Content import. Transfer content to a new platform. For small sites, this can be done manually. For large projects, plugins can be used.
  4. Transfer the site design. Customize your default WordPress theme to match the design of your existing site.
  5. Review, test. Carefully check everything again and back up the new site. Make adjustments, set up a redirect url from the old site to the new one. Test!

This is the basic plan for migrating a site to a new platform. Now let's look at each of the stages in more detail.

Start with a plan

The key to a successful site move is the evaluation of an existing web project. You need to figure out how to import and structure content in WordPress. The main points of site migration do not change, all the complexity is in the details that are specific to each project.

Below is a list of questions to consider when evaluating content:

  • How much content should be imported? Number of pages, images, etc.
  • Maybe import the content manually? Or do I need to use a tool?
  • If using a tool, does it exist?
  • Can content be organized into "posts" and "pages" or is it different from the standard types?
  • Do I need to transfer additional content elements (input fields, examples, videos, etc.)?
  • Will the URL structure change? If yes, then we must not forget about the redirect from old pages to new ones.
  • Is the content open to public access? Or are there pages for registered users only?

Before you transfer the content, you need to prepare wordpress. If you're just experimenting, . Otherwise, you need to do it on the hosting.

Once WordPress is installed, you're ready to go!

SettingURL

Go to Settings -> Permalinks to make changes. In most cases, links are best stored as a post title.


User Accounts

If users have been registered on your site, you need to create accounts for them in the installed wordpress. Once the site migration is complete, it's a good idea to let users know by email.

Required plugins

Plugins are selected for the specific needs of the site (contact form, content slider, gallery, social bookmarking, etc.). Here is the official plugins directory. The only thing to note is the organization Reserve copy data (backup).

Importing content into the WordPress platform

This is a routine and responsible job!

If your old site used a CMS, there is an option to automatically import content. Review the list of scripts that allow you to do this. Follow the instructions and do it!

If your old CMS is not listed, or the site is self-written, with no more than 100 pages, then it's best to do everything manually. Copy and paste content, making note of the transferred page urls.


If you have a database with several thousand content at your disposal, then you will have to take care of a specialist. Or find an automatic import solution.

Site design transfer

If you are not so critical new design, you can just pick an existing theme. Or correct the standard one (replace the logo, footer and change the color scheme).

In the case of transferring a site promoted and recognizable by users, it is best to keep the design the same.

Working with source code

From my own experience, it's best to work with the source code in the browser. If you take files from the hosting, you can make a lot of mistakes. In the browser, we see the site as users see it.


AT Google Chrome this is done like this: Menu -> Tools -> Source, or pressing right button mouse to open the context menu.

Create a theme

Style file

The first step in creating a theme is to copy the existing styles into the theme's wordpress stylesheet: style.css

To do this, just open this file for editing, change the information about the theme (commented out at the beginning of the file), insert styles from the old site.

Don't forget about the url of the images! Most likely they will change due to the new folder structure. Therefore, keep a close eye on this both in the style file and in the theme, respectively.

Site Header

The next step is to create the top of the site. Here it is necessary to combine the structure of the current html code With WordPress code template. In our example, we will act like this:

  • Duplicate the HTML structure of the old site
  • Replace Static Menu with WordPress Menu
  • Let's use the WordPress title tag and leave the wp_head hook.
  • Let's merge other relevant tags from the old site header.

Let's look at the code!

Old header HTML code

Vegan Food Pyramid posters, postcards and wallpapers

Vegan Food Pyramid

New header code (HEADER.PHP)

<?php wp_title("|", true, "right"); ?> >

Vegan Food Pyramid

"primary", "container" => false, "menu_class" => "menu")); ?>

Let's take a look at what we've done!

Make sure you migrated the old one. doctype. Otherwise, using the new HTML5 doctype for code from old specs can cause template breaks (especially in older browsers).

Meta tags

As a rule, all main tags are transferred. The exception in our case is the connection of the style file, which is inserted automatically using wp_enqueue_style in file functions.php

Scripts

Scripts can be tricky. If the script is connected to each page of the site (for example, the main script file or font script), then you can safely write it in the header or footer of the theme. If you need to connect only on a specific page, then conditional tags can be used. The best way is to register all scripts and add them with wp_enqueue_script.

Pasteat the bottom tag. WordPress uses this to include its own scripts and theme styles. Also for installed plugins. Without wp_head, most front-end plugins won't work.

body_class

Notice the application of ourtag. WordPress uses it to provide a series of useful classes for tag. These classes are inserted depending on the page type automatically.

WordPress menu

WordPress menu output is one of the most difficult tasks when transferring the site to this engine. In our example, we have a menu with simple markup that uses active class (generated with using PHP) to determine which page is being viewed. Function wp_nav_menu is very flexible and provides many built-in solutions for organizing menus. In the example, we have taken the styles from the active class and placed them in the wordpress equivalent current-menu-item class.

Site Footer

As a rule, the footer of the site changes the least. Everything is the same as in the case of the site header. Let's merge the HTML code.

OldFooter HTML code

New footer code (FOOTER.PHP)

Some of the footers are difficult to transfer to wordpress theme. For example, which contain menus and various widgets. Most of the footers are simple, like in our example. Don't forget to include the maintag before tag.

Main page

Can do work different ways. The home page is a prime example of this, as it is different from the rest of the website structure. In our example, we will embed the main page completely in wordpress template. Any changes can be made later.

old code home page

Poster

$30 each

buy

postcards

$50 for 50

Includes free shipping worldwide

buy

New front page code (/page-templates/front-page.php)

/images/Vegan-Food-Pyramid-New.jpg"> /images/Vegan-Food-Pyramid-New.jpg" />

Poster

A 30×20-inch poster illustrating over 125 vegan food items as an alternative to the traditional food pyramid. This poster will catch people's attention and serve as a suggestion for food ideas.

$30 each

Includes free shipping worldwide

buy
/images/Vegan-Food-Pyramid-New.jpg"> /images/postcard-splash.jpg" alt="(!LANG:Postcard Splash" /> !}

postcards

Beautiful 4×6 postcards that can be mailed and shared with friends and family. Hand them out at events. Post them on walls. Share the vegan love!

$50 for 50

Includes free shipping worldwide

buy

Home page template front-page.php starts and ends with connecting the header and footer of the site, which we just set up. In between, we'll connect the HTML code, we'll use the function get_stylesheet_directory_uri, to get dynamic URLs to our theme's image folders.

Standard Page Template

To save time, let's move on to the finished WordPress template page:

Post page template (PAGE.PHP)

Content page template (CONTENT-PAGE.PHP)

>

There are a few points to consider:

Cycle

If WordPress is something new for you, then a piece of code in the block # content may seem complicated. The loop is a piece of code for displaying post previews. You can learn more about loops in the codex. Just make sure that this section of code is present, otherwise the list of posts on the page will not be displayed.

get_template_part

This feature is a good option to organize content, especially in complex projects. Although this project is simple, we will use it as an example.

post_class

We also insert this line, for ease of making changes to the design.

Full Width Template (full-width.php)

The template allows you to use a full page, when viewed, the standard page changes accordingly in width.

templates/full-width.php

After that, in the admin panel interface, you can open "Edit Page", find the "Page Attributes" block (usually below and to the right of the publication block), and then select "Full Template" from the drop-down list of templates.

Reviewing, testing

It's time to rethink our work. Test and review carefully. For a large site, focus on different templates. Here are some things to watch out for:

Make sure all links work as they should. If you have multiple pages, you can do it manually. For automation, you can use Integrity(free, for Mac) or Xenus Link Sleuth(free, for Windows).

Mismatched Styles

In one way or another, some design elements may not display correctly. Carefully compare the old and new HTML code.

Functionality

Check the functionality of the "Buy Now" buttons, contact forms, newsletters, attached maps, media players, etc.

In the process of transferring the site to wordpress, temporary links to folders and empty pages could appear. Look carefully and remove them.

Redirect setup

If your link structure has changed, make sure users and search engines are redirected to the new URLs. For a small number of addresses, often use . htaccess file.

Open this file from the WordPress engine folder. If you don't see it, change your FTP client settings to show hidden files. Now we will write instructions for redirecting each of the pages:

Redirect 301 /wallpaper.php http://veganfoodpyramid.com/wallpaper/ Redirect 301 /about.php http://veganfoodpyramid.com/about/ Redirect 301 /contact.php http://veganfoodpyramid.com/contact/ Redirect 301 /contactthanks.php http://veganfoodpyramid.com/contact/thanks/

Completion!


Your site has now been updated! We hope you have successfully migrated your site to WordPress. If you are still at some of the stages of moving the site, and something does not work out, write in the comments.

That's all, now you know how to transfer a site to the WordPress platform!


Suppose we are transferring a site from one hosting to another, and with a change of domain. Initially, the site was located on the wp1.ru domain, and we are moving it to the wp2.ru domain. Before starting, you need to have the following data: address, login and password of the MySQL server on the old and new hosting + address, login and password of the FTP server on the old and new hosting.

Database backup

Backup can be done in two ways:

  • From the WordPress dashboard using the WP-DBManager plugin.
  • From the hosting control panel using phpMyAdmin.

Only the second option will be considered here, as the most reliable. In addition, phpMyAdmin will have to be used when importing the database on a new hosting.

So, go to the control panel of the old hosting, find a link to phpMyAdmin, enter your login and password, and finally get to the main page of phpMyAdmin.

In the column on the left, you need to select the database of your site. Next, a page with a list of database tables will appear. In the top menu, go to the Export tab.

Export settings:


We leave almost all parameters unchanged. The only recommendation is to check the option “Save as file” + “Pack in zip”. After clicking the OK button, save the file to your local computer.

Please note that we are only exporting tables, not the entire database. This is more convenient, because hosters almost always create databases with their own prefixes, and when the database is transferred to a new host, the database name changes.

Backup files

Here, everything is simple using an ftp client, we copy all the WordPress files to the local computer.

Transferring a database to a new host

First you need to create a database. There are options here. Some hosts allow you to create a database and users only from the control panel, while others provide this opportunity from phpMyAdmin. Let's assume that our new host belongs to the second group.

We go into phpMyAdmin on the new hosting and create a database. The Compare field can be left unchanged:


We create a separate database user (if required and if the hosting provider allows). To do this, open the newly created database, in the top menu go to the Privileges tab, then “Create a new user”:


We come up with a username, password (at least 6 characters). In the “Database for user” section, check the item “

Now let's move on to importing tables. The base must be selected. In the top menu, go to the Import tab:


Select the file that was created when exporting from the old database (you can send a zip archive right away). Press OK. If everything went well, you will see the inscription: “Import completed successfully, queries completed:” and a list of tables will appear in the left column.

Because Since we are moving to another hosting with a change of domain name, then in the wp_options table we need to change the values ​​of two parameters: siteurl and home.
Open the wp_options table, look for the entry with the siteurl value in the option_name column. To change the entry, click on the “pencil”:


Change the option_value field. Replace the old value http://www.wp1.ru with the new http://www.wp2.ru and click OK:


In the same way, we change the value of the home parameter.

Transferring files to a new host

Before copying files to a new host, you need to change the database connection settings in the wp-config.php file.
You need to change the old values ​​of the constants:

  • DB_NAME - database name
  • DB_USER - username
  • DB_PASSWORD - user password
  • DB_HOST - address/name of the database server

for new ones.

After the data for connecting to the new database server is saved, using the ftp client, we upload the site files to the new hosting. After downloading, the site should work correctly on a new hosting under a new domain name.

Final stage

WordPress has a feature - by default, all images are inserted using an absolute path (with a domain name). Because of this, when transferring the site to another domain, the pictures stop working. The problem can be solved simply and quickly using the plugin.
After activating the plugin, go to the settings page. In the Search In section (where to look), check the box next to Content (search for the content of all pages and posts). In the Replace field (we search for this value and replace it), enter the old domain. In the with field (replacement value), enter the new domain. And press Go.

Web developers, one way or another, may face the problem of transferring a site running on WordPress to another domain or hosting. There will be no problems with transferring the site to another hosting while maintaining the same domain name. The main thing is that the new hosting should support those system characteristics that are necessary for your site.

In this article, we will look at how to change the domain of a WordPress site without losing its performance and position in search engine results. The whole procedure is quite simple and you need to follow a few simple steps:

  1. Use one of the methods described below to transfer the site to another domain.
  2. Set up robots.txt on the old and new domains.
  3. Create a 301 redirect from the old domain to the new one.

Moving a WordPress site to another domain

First way

The easiest way is to change the domain name in the admin console:

  1. Go to the admin panel, then go to the "Settings - General" page.
  2. In the existing fields “WordPress Address” and “Site Address”, fill in the new URL of your domain. We save the settings. Ready.

The method, although simple, is not suitable for everyone. If you have ever done manual internal linking, then the above steps will not help in this case. Let's move on to the second method.

Second way

Again, this is far from an ideal method, and it is bad because it requires more labor than the third method (the most convenient, provided you have access to PhpMyAdmin). Okay, let's leave it at that for now:

  1. Open the SQL dump of the database in a text editor (eg Notepad++).
  2. Replace all occurrences of the old site address with the new one. Save the document.
  3. Import the dump into the database, before that, delete all existing tables there. Ready.

Third way

So we got to the most interesting and convenient way, which helped the author more than once. Here we work directly with the database using SQL queries:

  1. Go to PhpMyAdmin, directly to the database. Click on “SQL” in the dashboard at the top.
  2. We enter three queries one by one or at once: UPDATE wp_options SET option_value = replace(option_value, "http://domain.ru", "http://newdomain.ru") WHERE option_name = "home" OR option_name = "siteurl"; UPDATE wp_posts SET guid = replace(guid, "http://domain.ru","http://newdomain.ru"); UPDATE wp_posts SET post_content = replace(post_content, "http://domain.ru", "http://newdomain.ru");
  3. We replace “domain.ru” and “newdomain.ru” with the old and new addresses, respectively. We save. In this way, we will achieve a change in the URL throughout the site, wherever it is. Ready.

Setting up robots.txt on the old and new domains

To successfully merge the old domain with the new one, you need to tell the search robot about the operation of a different site address. To do this, in the robots.txt file on the old domain, create the “Host” directive with the address of the new domain name (we do the same on the new one):

Host: newdomain.ru

This and the following procedures are necessary in order to maintain the “weight” of the site (TIC, age, etc.), and also to prevent the robot from thinking that it is dealing with a completely different resource, with the same content and duplicate pages.

I want to draw your attention to the fact that in the future a temporary drop in positions in search engines is possible, however, do not be alarmed, queries should recover over time.

Creating a 301 redirect

In order for users and search robots, having accessed the old address (to the main or internal pages), to automatically get to the new one, you need to create a 301 redirect (the document has been transferred) on the old domain. In the .htaccess file we write the following:

Rewrite Engine off Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://newdomain.ru/$1

Actually, that's the whole procedure.

For many webmasters and site owners, a situation may arise when a site needs to be transferred from one domain to another. it is necessary to transfer a site running on the WordPress engine to a new domain. Those. the essence of this action is only to change the domain name, all the content, as well as the link structure, remains the same. At the same time, an important point is the preservation of TCI and PR indicators.

This issue must be approached with a full understanding of the matter, because the opposite can be fraught with unpleasant consequences, for example, you will have to start promoting the site on this new domain from the very beginning.

There is one important point: when transferring to a new domain, we now need to maintain 2 domains - the old one and the new one, and this transfer is carried out in 2 steps:

1) copy all the scripts of the WP site and database from the old domain to the new one
2) do a 301 redirect from the old domain to the new one

Transferring scripts

There are several ways to perform the first step of the transfer, different methods will be more convenient for different webmasters. So:

№1

The most optimal way if we transfer the site on one hosting account:

  1. go to the admin panel of the site on the page "Settings - General"
  2. in the "WordPress Address (URL)" and "Site Address (URL)" fields, enter the URL of the new domain and confirm the changes by clicking on the "Save Changes" button

Ready. Now WordPress, after saving the settings, redirects you to a new domain with the settings already written.

№2

This method is suitable if we transfer scripts and database to another hosting account or to another hosting:

  1. copying WordPress scripts to a new domain
  2. copy the SQL dump and open it in a text editor, if it is not very large, then everything will go more or less simply
  3. you need to replace all occurrences of the old site address with a new one, for example, replace http://domain.ru with http://newdomain.ru, and save this sql dump
  4. upload the dump to a database on the server, for example via PHPMyAdmin

Ready. The WordPress site is working at a new address. But you need to do it carefully, because you can break something in the SQL dump.

№3

The third method is also suitable if we transfer the scripts and the database to another hosting account or to another hosting, but at the same time we have some knowledge of site administration.

  1. copy WordPress scripts and SQL dump to a new domain/hosting/account
  2. go to phpMyAdmin and select the database you want database
  3. click on the "SQL" tab and execute the following 3 queries one by one
    UPDATE wp_options SET option_value = replace (option_value, "http://domain.ru" , "http://newdomain.ru" ) ;

    UPDATE wp_options SET option_value = replace(option_value, "http://domain.ru", "http://newdomain.ru");

    UPDATE wp_posts SET guid = replace (guid, "http://domain.ru" , "http://newdomain.ru" ) ;

    UPDATE wp_posts SET guid = replace(guid, "http://domain.ru","http://newdomain.ru");

    UPDATE wp_posts SET post_content = replace (post_content, "http://domain.ru" , "http://newdomain.ru" ) ;

    UPDATE wp_posts SET post_content = replace(post_content, "http://domain.ru", "http://newdomain.ru");

Ready. Now the site will open at the new address.

Creating a 301 redirect

Now you need to make sure that when a visitor enters the pages of the old site, he is automatically redirected to similar pages of the new site. To do this, we do from the old domain to the new one. To do this, on the old hosting domain, replace the contents of the file with the following:

1 2 3 Options + FollowSymLinks RewriteEngine on RewriteRule (.* ) http:// newdomain. ru/ $1 [ R= 301 , L]

Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://newdomain.ru/$1

On this, perhaps, and all. The process of migrating a WordPress site to a new domain can be considered complete.

A few words about TIC and PR site. With the 301 redirect implemented, these metrics will eventually be transferred to the new domain, but will be lower as the redirect adds to the site parameters. The main advantage is that a 301 redirect will transfer all behavioral factors to the new domain, and search positions should always be worked on.