Pseudo-static settings for Windows host Web site Httpd.ini

Source: Internet
Author: User
Tags ini root directory

Web site Construction Technology is constantly changing, early learning to build stations are used in dynamic pages, and later the popular generation of static effects. However, if due to the large amount of information on the site, after the creation of static site volume will be particularly large, if we want to modify the template, generating a static estimate of the total station is hard enough. At present, the more popular way is pseudo static. Some time ago a friend helped me to make a website directory program, I also add to the blog level two directory.

Program with the dynamic page, today I try to modify pseudo static, in fact, is also very simple, with a few conditions can be achieved.

First, if you are using a virtual host, verify that rewrite pseudo static httpd.ini files are supported

Second, we need to change the dynamic page link in the program to a pseudo static effect, such as showurl.asp?id=123 need to replace showurl-123.html

Third, add the Httpd.ini file

[Isapi_rewrite] 
# 3600 = 1 hour 
cacheclockrate 3600 repeatlimit-Rewriterule ^/daquan/showurl- 
(d+). html$/daquan/ Showurl.asp?id=$1

Four, put the Httpd.ini file into the site root directory. Open the site to try the effect.

If the win host site requires pseudo static, we can follow the above method settings.

Original address: http://www.itbulu.com/blog/891.html

Related Article

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.