Home » To do this you will have to enter

To do this you will have to enter

The code either in the .htaccess configuration file (if you are using the Apache web server) or in the virtual domain configuration files (if you are using the Nginx web server). You can also use additional tools from the library of extensions of your content management system. We will talk about 301 r irect in all three cases. Note that from a technical point of view and for search engine optimization, a domain is no different from a domain without.

Each of them can serve as the main mirror

The choice is yours. In the end, it is only important chinese uk that the visitor always gets to only one of the versions via r irect. R irect from ” ” to without ” “: how to set up. Image by vectorjuice on Freepik. Using the .htaccess file Typically, this file is locat in the root directory of the site. If you do not have access to it, contact your hosting provider’s technical support to get it.

special data

It also happens that there is no object

With the .htaccess extension in the directory. Then enable the display of hidden files or, if this does not help, create .htaccess yourself. Download ai and starting by asking it using an FTP client. Now you can make changes. If you chose “without “, you ne to create a r irect from the address to the regular one. To do this, add the following lines to .htaccess. Using the .htaccess file. When r irecting back (from “without ” to the version), use the following structure. Reverse r irect.

In both cases, replace “site.com” with your domain

Save the changes and upload the .htaccess bulk lead file to your server. The r irect will now work. Using Nginx If the site runs on Nginx, the .htaccess object will be missing (no ne to create it). Instead, we will it the virtual domain configuration files. They are the same in any Linux distribution, but can be locat in different places.

Scroll to Top