Using ISAPI rewrite to implement HTML static of ASP

Source: Internet
Author: User
Tags ini

ASP site procedures in the domestic application is very wide, but similar to im286.asp?id=20050307213811 such a URL is not conducive to the search engine included, that is, not in line with the friendly URL (urls-friendly) standards, then we use Isapi_ Rewrite create a clean URL, let the spider joy to climb your station bar.

Don't say much nonsense, start!

1, download Isapi_rewrite.isapi_rewrite (Lite) and complete (full) version. The Lite version does not support overriding for each virtual host site, only global processing. But for friends with servers, the lite version is enough. Lite Download Address: http://www.helicontech.com/download/, that's the Lite version (free).

2, installation of the file of MSI, and install the same as the general procedures can be, I installed in the d:\isapi_rewrite.

3, the next step is more important oh, look carefully. Open Internet Information Services, right-click, Web site properties, and the Electrical ISAPI Filter tab. Add a filter, name it yourself, the path you specify Isapi_rewrite.dll, and then determine.

4, to test. Create a new 1ting.asp, which is written on the <%=request.querystring ("Inso")%>, the effect is the execution of the 1ting.asp?inso=* browser display *.

5, this step is very important oh, start adding rewrite rules. Regular, good headache, thanks to this example is relatively simple.

Find the Isapi_rewrite directory, remove the Httpd.ini read-only attribute, and open the edit. We're going to map 1ting.asp?inso=im286 to a type like 1ting-im286.html, and we need to add a line to the Httpd.ini. : rewriterule/1ting-([0-9,a-z]*). Html/1ting.asp\?inso=$1, save.

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.