<ConfigSections>
<! -- Used to specify the handler Class Name of the configuration section "RewriterConfig" as "URLRewriter. Config. RewriterConfigSerializerSectionHandler", which exists in the URLRewriter. dll file in the bin directory -->
<Section name = "RewriterConfig" type = "URLRewriter. Config. RewriterConfigSerializerSectionHandler, URLRewriter"/>
</ConfigSections>
<HttpModules>
<Add type = "URLRewriter. ModuleRewriter, URLRewriter" name = "ModuleRewriter"/>
</HttpModules>
<RewriterConfig>
<Rules>
<RewriterRule>
<! -- Indicates the url entered by the user, d (\ d + )\. aspx is a regular expression that matches the file name in the url (it starts with the letter d, followed by one or more numbers, and starts. the end of aspx. You can also set it based on your own needs ). -->
<LookFor> ~ /D (\ d +) \. aspx </LookFor>
<! -- Indicates how to rewrite the url after the server receives a request that meets the preceding conditions. Here, defalutl. aspx is accessed and the parameter id is passed in. The value $1 is represented by the first number in the file name of the user request.
For example, if you enter hostname/d11.aspx, the server will rewrite it to http: // hostname/default. aspx? Id = 11. In other words, if you enter http: // hostname/d11.aspx, the actual access is
Http: // hostname/default. aspx? Id = 11. In this way, the real file name is hidden and easy to remember. -->
<SendTo> ~ /Default. aspx? Id = $1 </SendTo>
</RewriterRule>
<RewriterRule>
<LookFor> ~ /News_ny _ (. * cmd.html </LookFor>
<SendTo> ~ /News_ny.aspx? NewsId = $1 </SendTo>
</RewriterRule>
<RewriterRule>
<LookFor> ~ /News _ (. *) _ (. * example .html </LookFor>
<SendTo> ~ /News. aspx? NewsTypeId = $1 & amp; newsWhere = $2 </SendTo>
</RewriterRule>
<RewriterRule>
<LookFor> ~ /News.html </LookFor>
<SendTo> ~ /News. aspx </SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
When the AspNetPager page control is used, you can set the UrlPaging of AspNetPager to false to solve the problem of displaying the. aspx page of the page control in disguise. You can also configure the pseudo-static. html file in one step on the homepage.
The rule "&" for two parameters must be written as "& amp;". If the second parameter is not empty, it must be written as "_" such as news_xwgg_.html.
Configure pseudo-static IIS 7.5
HttpHandler implements. Net Web access without a suffix
1) First, create an application pool with any name, for example, nettest. The managed pipeline mode is set to the integration mode temporarily, and then set it to the classic mode after the following series of settings are complete;
2) Deploy the site and set the application pool of the site to nettest;
3) Select the site, switch to the function, find "server components"-> "handler ing", double-click it, and set it in the Action column on the right of the window:
4) "add script ing": Request Path. html: select C: \ Windows \ Microsoft as the executable file. NET \ Framework \ v2.0.50727 \ aspnet_isapi.dll. If it is 4.0, It is C: \ Windows \ Microsoft. NET \ Framework \ v4.0.30319 \ aspnet_isapi.dll. The name is random;
5) "add wildcard script ing": Request Path *. The executable file is C: \ Windows \ Microsoft. NET \ Framework \ v2.0.50727 \ aspnet_isapi.dll. The name is random;
6) "add managed handler": Request Path *. Executable File: System. Web. UI. PageHandlerFactory. The name is random;
7) Open the website switch function, find "server components"-> "module", double-click it, and click "add managed module", Type
URLRewriter. ModuleRewriter, and selects "Send request calls only to asp.net applications or managed handlers;
8) Finally, find the application pool nettest created in step 1 and set the managed pipeline mode to the classic mode.
After completing the preceding steps, you can perform pseudo-static operations under IIS 7.5.
2003 configure pseudo-static IIS
IIS configuration: website-> properties-> directory-> Configuration (G)...-> ing-> application extension-> Add
Executable File: c: "windows" microsoft.net "framework" v2.0.50727 "aspnet_isapi.dll
Extension:. html
Action: limit to GET, HEAD, POST, and DEBUG
Script Engine: Selected
Check whether the file exists: No
From column BQL_Email