Use the tag <base> 〉

Source: Internet
Author: User
The main reason for using the <base> label is to ensure that all the relative URLs in the document can be broken down into the correct document address, the document can be correctly parsed even if it is moved or renamed.

When creating a document set, it is particularly important to use the <base> tag. By placing the correct <base> tag in each document, you can move the entire document set between directories and even servers without damaging any links in the document. If you want to direct a user query to a URL different from the main document URL, you also need to use the <base> tag for the searchable document (<isindex>.

If the document colleague contains the <isindex> label and other relative URLs, the problem may occur if the relative URL is irrelevant to the desired index processing URL. For this reason, do not specify the document query URL in a searchable document using the <base> tag.

For example:

<Base href = "http://www.163.com"> the relative address of the entire page is expanded under www.163.com. No matter where it is moved.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.