This article shares a tutorial on iis6 pseudo-static graphic configuration. If you need to know how to configure pseudo-static iis6 in windows, refer to this article.
1. Right-click the website you want to set up
2. properties -- home directory -- configuration --
3. In the right window, find the. aspx extension -- "edit --" copy the path of the executable file -- "close
4. Click "add --" to paste the copied executable file path.
5. Fill in. html extension (if it is. htm or any extension you want, the premise is that the extension is not included in the application extension list in the future)
6. Check whether the file exists.
7. OK
If you do not know how to configure iis6 web. config pseudo-static, refer to this article.
Iis6 web. config pseudo-static configuration method skip this step if you know it.
1. The parameters are included in () and $1 is used to obtain the parameters.
2. Use & amp; To separate multiple parameters.
3. Add Intelligencia. UrlRewriter. dll to the bin directory.
The Code is as follows: |
Copy code |
<? Xml version = "1.0"?> <Configuration> <ConfigSections> <Section name = "rewriter" requirePermission = "false" type = "Intelligencia. UrlRewriter. Configuration. RewriterConfigurationSectionHandler, Intelligencia. UrlRewriter"/> </ConfigSections> <System. web> <HttpModules> <Add type = "Intelligencia. UrlRewriter. RewriterHttpModule, Intelligencia. UrlRewriter" name = "UrlRewriter"/> </HttpModules> </System. web> <Rewriter> <! -- Homepage --> <Rewrite url = "~ /Default.html $ "to = "~ /Default. aspx "processing =" stop "/> <! -- News --> <Rewrite url = "~ /News/list-([A-Za-z0-9-] * ).html $ "to = "~ /NewsList. aspx? TypeUrl = $1 "processing =" stop "/> <Rewrite url = "~ /News/list-([A-Za-z0-9-] *)-([0-9] * ).html $ "to = "~ /NewsList. aspx? TypeUrl = $1 & amp; page = $2 "processing =" stop "/> <! -- News details --> <Rewrite url = "~ /News/([A-Za-z0-9-] * ).html $ "to = "~ /NewsDetail. aspx? Url = $1 "processing =" stop "/> </Rewriter> </Configuration> |
If you do not know how to configure iis6, refer to this article.
Success. I think writing is very detailed. If you have any questions, please leave a message.
If you have any questions, contact us.