How To Change The Name Of The Site

Table of contents:

How To Change The Name Of The Site
How To Change The Name Of The Site

Video: How To Change The Name Of The Site

Video: How To Change The Name Of The Site
Video: How to Change Site Title and Tagline in WordPress 2024, May
Anonim

The site name or domain name is its web address. Changing it can lead to your site dropping out of search engines and, as a result, losing almost all traffic. Let's consider a few tricks on how to change the name of a site without compromising its traffic.

How to change the name of the site
How to change the name of the site

It is necessary

computer, internet access

Instructions

Step 1

In order to save all the pages of your site in the index of search engines, you just need to set up a redirect of its site pages to similar pages with a new domain. What is needed for this?

Transfer all site content to the new domain. To do this, buy a domain, set up a DNS server and, after delegation, bind the new domain to the old site.

Step 2

In the next step, redirect. In the root directory of the site, find the.htaccess file and write the following lines in it:

Options + FollowSymLinks

RewriteEngine on

RewriteRule (. *) Http: // new_site_name.ru/$1 [R = 301, L]

After completing this procedure, all users and search robots who follow links to the old URLs of your website pages will automatically be redirected to the new URLs.

Step 3

Add a new domain name for indexing by search engines Yandex and Google in Yandex. Webmaster and Google Webmaster, respectively. In order to carry out re-indexing as quickly as possible, make sure that the search engines see your sitemap, both with new and old addresses. To do this, place a link to it on the main page. A sitemap with old addresses will provide an opportunity to update the indexing of pages that have a redirect configured. The new map will allow you to index pages that were created after changing the name of the site.

Step 4

After that, make sure that when navigating to the old domain, the user gets to a 404 page, which would indicate that the site has changed its name and now has a different address.

Recommended: