HTML redirect: visitor flow control

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

Visiting the site, the visitor can write in the address bar: URL: //index.html, URL: //index.htm, URL: //index.php, URL: //index.phpp ... A simple server rules mechanism makes “Redirect from html to without html”, that is, it provides the ability to remove unnecessary tails (.htm, .html, .php ...) in the address bar, and not only them:

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

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

URL: // index

HTML redirect




The meaning of redirection

, - IP-. DNS, DHCP , , . , . html - . , , phpMyAdmin , - , .





Complex Address Bar Example




. , , , .

, , .

, , . , , .

, , HTML , . « !» .

Redirect from html to without html








. .

html - .

The easiest redirect




META HTTP-EQUIV=Refresh CONTENT=" ... ", , , .

-

, : , , . . .

IP- , html , . , , .

Make html redirect




- IP-. -, , .

Html , - . , , IP- , - .

Html page redirect




- : , , . Html . , , , , . , .

Html , . , .

html - .




All Articles