you need
  • Website, the server is running Apache.The configuration of the server, allowing the use of custom file .htaccess.Active module mod_rewrite.FTP-client program.Data for access to the server via FTP.
Guide
1
connect to the server site using FTP-client program.This should be the server that hosts the site from which you are forwarding.The data for FTP access is usually published on the website hosting company or the hosting control panel.
2
Download the .htaccess file in the root directory site to your hard drive.If there is no .htaccess file in the root directory, chec
k the display mode of the hidden files on the server.If the mode is off, turn it on and refresh FTP-listing.If the file is still not visible, just create an empty file named .htaccess on the hard drive of your computer.
3
Open .htaccess, located on the hard disk in a text editor.It should be a plain-text editor, that is, text without formatting.He should be able to save a file in one-byte encoding that is compatible with latin-1 encoding.
4
Edit .htaccess.If you want to make redirect all users from any url inside site one another url site , enter the beginning of the .htaccess file that resembles the following line: RewriteEngine on
RewriteRule ^ & lt; novyy_adres & gt;[L, R = 301] Here, instead of tags & lt; novyy_adres & gt;you must register the address to which you will be forwarding.For example, it might look like this: RewriteEngine on
RewriteRule ^ http://codeguru.ru/ [L, R = 301] If you want to make forwarding from multiple url site similar to another url site (for example, when you change the domain site ), then mount it to the top of the .htaccess file a line that resembles the following: RewriteEngine on
RewriteRule ^ http: // & lt; novyy_domen & gt;% {REQUEST_URI} [L, R = 301]For example, it might look like this: RewriteEngine on
RewriteRule ^ http: //codeguru.ru% {REQUEST_URI} [L, R = 301] Save the file to .htaccess.
5
Download the .htaccess file in the root directory of the site .Use the FTP-client program.If a .htaccess file already exists in this directory, overwrite it.
6
Test the forwarding.Open the browser an address site , which must be carried out with forwarding.If everything works fine, the browser will automatically load another page site .