Use isapi_rewrite To Make ASP static. Pay attention to the path
Source: Internet
Author: User
Today, I suddenly want to make an ASP Web page static, so that the search engine is easy to include. I used isapi_rewrite to check the web page. After setting it, I found that it still does not work, there is always a prompt that the file or path cannot be found. I tried a variety of methods, but I still couldn't. In the evening, I suddenly thought that the path was not added to the regular expression. For example, the default site folder is wwwroot, and I usually place other websites here, for example, in wwwroot \ website, in the regular expression, I wrote rewriterule/Article (\ D +) \ According to the introduction on the Internet )\. htm/X \. ASP \? Cnmai = $1 [N, I]. In fact, you should add the path, rewriterule website/Article (\ D +) \. htm website/X \. asp \? Cnmai = $1 [N, I].
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