Absolute link

from Wikipedia, the free encyclopedia

An absolute link is an Internet reference in which the destination of the link is specified in the source text including the domain . This link can be internal or external. In most cases, the browser adds the protocol "http: //". In contrast to the relative link, this link is unique and always leads to the same reference.

Absolute links are often used in search engine optimization , since search engines often rate these links as positive. Absolute links with an internal link target are often used by the homepages in order to be rated better themselves. Furthermore, an absolute link has the advantage that it is the same from every directory. However, the disadvantage here is that the URL in the source text of the document can be very long.

In the case of absolute links, the address must always be fully introduced: http://www.example.org/dateiname.htm

References to the root directory

For example, with an absolute reference, a drive is "C: /". With some browsers it is necessary to start with "file: // C: /".

If you want to refer to a start file of a root directory, it is sufficient to enter the link up to the beginning of the directory. A start file is then automatically searched for as long as certain conditions for the name assignment of the start file are met. This file is usually called index.html. Depending on the software of the web server , several files can be specified, which are requested in a fixed order.

Example: http://www.example.org/

Reference to a file

If you want to refer to a specific file with the help of an absolute link, it is sufficient to simply append the file name.

Example: http://www.example.org/Directory1/Datei.htm

Reference to a subdirectory

If you want to refer to an index file that is located in a subfolder, you have to put the directory name in front.

Example: http://www.example.org/subdirectory/

External reference

External references to files on the web must always be made as an absolute link according to the following scheme: "Protocol + domain + file name"
Example: <a href="http://www.example.org/dateibebeispiel.htm"> text link </ a >

See also

Web links