DOCUMENTATION

where to find dry air freshener


Computer documentation


Articles. Computer documentation

Redirect 301. Gluing domains with www and without www. Installation of a redirect 301 on server Apache and Microsoft.

The redirect 301 is applied to a redirection of users and search robots on other address of the domain. Thus there are gluing domains i.e. transfer of weight of the banishing domain, to the domain on which you ???????????. The redirect 301 entirely transfers the basic weight characteristics ???, PR, all reference weight of the domain with redirect too will pass to the addressed domain.

Gluing domains with www and without www. Installation of a redirect 301 on server Apache.

The first variant of use 301 redirects - for gluing domains with www and without www in one.
For example. Sites http://wmr1000.ru/ and http://www.wmr1000.ru/ are defined by the basic searchers (Yandex and Google) as different sites. Accordingly if to make nothing reference weight between them it is distributed, after all some users will leave where in a network of the link to a site with www, and others without www. It is frequently well appreciable if you check parametres in what ?????? to system the site analysis, for example in pr-cy.ru. Enter the site address at first without www, and then with www and compare results. You will see different quantity of the deep links, not seldom different ??? and PR.
Therefore we choose one of them the core and we transfer weight to it. I usually use the domain without www as the core, but the basic difference is not present. We create in a notebook the new text file we name it.htaccess.

We register in it:
 
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.wmr1000.ru$ [NC]
RewriteRule ^(.*)$ http://wmr1000.ru/$1 [R=301,L]

We add the received file.htaccess in a root directory of a site, usually it public_html. Naturally having replaced in the text a domain name wmr1000.ru with the. Thus all parametres of a site with www will be betrayed to a site without www.

The return variant of transfer of weight from a site without www to a site with www, will be accordingly:
 
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ wmr1000.ru$ [NC]
RewriteRule ^(.*)$ http:// www.wmr1000.ru/$1 [R=301,L]

We check presence gluing.

We enter in a command line of the browser the address of a site for the first case http://www.wmr1000.ru/ and it is visible that the address automatically has changed on http://wmr1000.ru/ Redirect works for all pages of a site so can check not the main page, and any another. If you transferred weight to a site c www that accordingly to enter for check it is necessary http://wmr1000.ru/

If you check gluing that interests more ????????? check up server answers. You can check up the answer of the server in the majority of systems of the analysis of a site. The answer to the reference to the stuck together address:

Server Response: http:// www.wmr1000.ru
HTTP Status Code: HTTP/1.1 301 Moved Permanently

The answer of the server to the reference to the key address:

Server Response: http://wmr1000.ru/
HTTP Status Code: HTTP/1.1 200 OK

As you can see a full order of the address are stuck together.

Described all above works on servers Apache, which overwhelming quantity. If that that has not turned out communicate at a hosting support service. For example met a hosting where files.htaccess have been forbidden.

Gluing domains with www and without www. Setting a redirect 301 on Microsoft the server.

In ???????? from Apache servers Microsoft do not process a file.htaccess Therefore for gluing on such server, add on the main page of a site a code

< %@ Language=VBScript %>
< %
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", http://wmr1000.ru/
%>

Check gluing for different types of servers does not differ and described above.

Gluing various domains, mirror creation. Installation of a redirect 301.

Creations of a mirror by means of a redirect 301 it is similar to above described. For example. The site 1000-wmr.ru is a site mirror wmr1000.ru At it in a file.htaccess is registered:
 
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.1000-wmr.ru$ [NC]
RewriteRule ^(.*)$ http://wmr1000.ru/$1 [R=301,L]

 
RewriteEngine On
RewriteCond %{HTTP_HOST} ^1000-wmr.ru$ [NC]
RewriteRule ^(.*)$ http://wmr1000.ru/$1 [R=301,L]

As you see both addresses of the domain 1000-wmr.ru are redirected on wmr1000.ru.

Gluing addresses in Google account

To establish ??????? addresses of sites for Google as it is possible in Google account. For gluing sites with www and without www:

Account / Tools for web masters / a site name / adjustment

For mirror creation:

Account / Tools for web masters / a site name / a site Configuration / address Change
 
Alex
http://wmr1000.ru/

The rights are protected. To copy without maintenance change.