How to Set relative and absolute URLs

Source: Internet
Author: User
How to set the relative path and absolute path of the website? you don't want to display the absolute path on the website. at least there is an independent website on the page of the subsystem.
For example: sports.sina.com and news.sina.com only want to change sports and news in front, and sina.com in the back will remain unchanged. of course, this subsystem can then make the absolute path, such as news.sina.com/1/1.

Thank you !!!


Reply to discussion (solution)

Virtual directory or urlrewrite

You describe the second-level domain name. it has nothing to do with the path.

You describe the second-level domain name. it has nothing to do with the path. how can I set the second-level domain name?


You describe the second-level domain name. it has nothing to do with the path. how can I set the second-level domain name?
Two basic approaches for second-level domain names:
First, perform extensive domain name resolution, and then obtain the corresponding data according to the second-level domain name in the program, combined with urlrewrite implementation
Second: each domain name corresponds to a directory resolution

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.