Use isapi_rewrite to implement ASP static

Source: Internet
Author: User
ASP Website programs are widely used in China, but they are similar to im286.asp? URLs like id = 20050307213811 are not conducive to search engine indexing, that is, they do not comply with the URLs-friendly standard. Then we use isapi_rewrite to create a clean URL, let the spider crawl your site with joy.

Not much nonsense. Start work!
1. download the isapi_rewrite.isapi_rewrite lite and full versions. the lite version does not support rewriting of each virtual host site and can only be processed globally. however, for friends with servers, the lite version is enough. lite version: http://www.helicontech.com/download/, lite Lite version (free.

2. Install the. MSI file, just like the general program, and install it in D: \ isapi_rewrite.

3. the next step is important. Take a look. open Internet Information Service, right-click, web site properties, and the e-ISAPI Filter tab. add a filter, enter the name, specify isapi_rewrite.dll in the path, and then confirm.

4. Test it. Create a New 1ting. asp, and write it in it.

The result is 1ting. asp? Inso = * Browser display *.

5. This step is very important. It is a headache to add rewrite rules. Regular Expressions. Fortunately, this example is relatively simple.
Find the isapi_rewrite directory, remove the read-only attribute of httpd. ini, and open edit. We want to delete 1ting. asp? Inso=im286 is of the 1ting-im286.html type. You need to add the following line to httpd. ini:

, Save.

6. Come and see the results in the browser. Enter http: // 127.0.0.1/1ting. asp? Inso = im286 and http: // 127.0.0.1/1ting-im286.html. Are all displayed im286? This proves the success!

, 1ting-im286.html is better than 1ting. asp? Inso = im286 is easy to generate, so if you are still using the dynamic method, you can try this static ing effect. IIS rewrite can also implement this function.

Afterwards: The feasibility may not be too strong. I just discuss it from a purely technical point of view. I have made a picture of my bricks. The last injury has not been well-developed yet. # ASP Column

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.