If the page is static, how does HTML receive parameters?

Source: Internet
Author: User
Html

If the page is static, how does HTML receive parameters? No clue. Ask for advice


Reply to discussion (solution)

Can static pages receive parameters?

Can static pages receive parameters? Brother, your brick factory, hurry up, the posts are going to sink.

You want to say the static after the dynamic, you use javascirpt!

The static address can have parameters;

such as thred-38903-uid.html
There's a lot of information inside.

Performance optimization and usability should be properly balanced, rather than blindly pursuing performance optimizations, which would otherwise become code degradation.
There is no unified approach to static. It is usually rewritten via the URL. For example:
http://www.xxx.com/topic.php?id=390506260
Change into
http://www.xxx.com/topics/390506260

is changed to
Http://www.xxx.com/topics/390506260.html
Thus, no parameters are required. HTML pages are generated in the background with scripts. It implements a build, multiple accesses.
Pages with more real-time data or hard-to-live data separation are difficult to static and not recommended for static. Because it reduces code readability.

If you want to pass parameters, it's not really static.
There are three laws:
First:
http://www.xxx.com/topic.php?id=390506260
Change into
http://www.xxx.com/topics/390506260
Second:
http://www.xxx.com/topic.html?id=390506260
Use JS to turn, not safe
Third:
http://www.xxx.com/topic.html?id=390506260
Use Apache to turn around, the rules are written in the. htaccess.

  • 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.