Use tags <base>

xiaoxiao2021-03-06  36

use

The main reason for the label is to ensure that all relative URLs in the document can be broken down into the correct document address, even if the document itself is moved or renamed, it can be correctly parsed.

Use when creating a document collection

The label is particularly important. Place correct in each document

The tag can move the entire document collection between the directory or even the server without damaging any links in the document. If you want the user to query different URLs different from the main document URL, then you need to use it for search documents ()

tag.

When a document colleague contains the tag and other relative URL, there may be problems if the relative URL is not related to the desired indexing URL. For this reason, please don't use it.

Tags can be used in searchable documents to specify the query URL of the document with relative URL.

E.g:

So, the relative address of the entire page is

Off under www.163.com. No matter where it is moved.

转载请注明原文地址:https://www.9cbs.com/read-65822.html

New Post(0)