/ / HTML redirect: flow control of visitors

HTML redirect: flow control of visitors

Redirection mechanism (html redirect) from one address to another has a value,first of all, from the point of optimization of the address bar of the browser. Depending on the competence of the site developer, anything can be written in it, while it is enough to have just the name of the site there.

Going to the site, the visitor can write toaddress bar: URL: //index.html, URL: //index.htm, URL: //index.php, URL: //index.phpp ... A simple mechanism of server rules makes "redirect with html on without html" , that is, it makes it possible to remove unwanted tails (.htm, .html, .php ...) in the address bar, and not only them:

  • RewriteEngine On.
  • RewriteBase /.
  • RewriteRule (. *). (Html ​​| htm | php | phpp) $ $ 1 [R = 301, L].

Recorded in the .htaccess file in the root of the site will lead to the address bar:

URL: // index

HTML redirect

The meaning of redirection

By and large, the browser is a trivial way outthe space of IP-addresses. Thanks to numerous DNS, DHCP and other mechanisms, all this space is projected onto specific, accessible to the perception of a simple visitor's domain names. However, in many cases it does not make sense to show what is actually there in the address bar. Make redirection html - a good solution. In non-exclusive cases or for technical reasons, for example, when working with phpMyAdmin or when debugging a site, you can allow something not perceived in the address bar, as in the picture below.

Example of a complex address bar

But in practice it is better not to load perceptionvisitor with unnecessary information. The visitor came to the site for goods, services, information, and he is least interested in the contents of the address bar of the browser.

However, from the point of view of the perception of the sitethe developer should correctly display the address of the site in the address bar, namely the active page and exactly as it is best remembered by the visitor.

Technical need

Assuming that the server at the entry point tothe site works flawlessly, then you can start planning the redirection from it. A rare site is created once to exist forever, periodically it is necessary to repair individual pages or a whole resource.

If earlier it was possible to write that the site is technically working, and not doing HTML redirect, today it is perceived as a disrespect of the site owner to their customers. The phrase "We apologize for the inconvenience!" Only aggravates the situation.

Redirect with html on without html

The usual practice of redirection

Not all developers, or not always have the opportunity to perform work on the reconstruction or completion of sites on their own servers. Often the work is done on the current resource.

Redirecting the html page is the simplest and most effective solution.

The simplest redirect

Specifying in the tag META HTTP-EQUIV = Refresh and the required CONTENT = "...", you can redirect requests that came to the domain name to the desired address on the Web.

Redirect is an important part of the site

Technologies have become perfect, and the centercompetitive struggle has shifted towards service: the quality of services, goods, information, etc., has become an essential element in the decision-making process. Speed ​​and efficiency of work with the flow of customers also came to the fore.

If yesterday the word site meant one IP address orone domain name, today a rare site in its work does not use html redirect through other pages, through other sites. These can be pages of authorization, the collection of statistical data, the form of information transfer.

Make redirection html

The modern site is not always the same - onedomain name and one IP address. A site is often called a web resource, and it is understood that many parts of the site are distributed according to real geographic positions or are configured from a technical point of view for distributed information processing.

Html redirect allows visitors from Russiasend to the server in Moscow, and visitors from America to the server in Washington. Although the speed of communication lines is rarely dependent on distances, but this scheme allows the Russian part of the site to target Russian-speaking visitors and offer addresses for the provision of services, purchase of goods in the immediate vicinity of the visitor's IP address, and Americans - to offer everything in English and within their accessibility.

Redirect page html

An important component of any web resource istechnical side: reliability, stability, security. Html redirect allows you to instantly switch the server. All visitors that came before the redirection, still continue to be serviced on the main server, but the following are already going to another, ancillary. As soon as the first will satisfy the interest of the last visitor, he becomes prophylactic.

Reverse Html Redirect releasesAuxiliary server, and the main server again takes up its duties. Such switching allows to carry out the full preventive works, imperceptible for visitors.

Simple redirection of the html page - and how many possibilities.

</ p>>
Read more: