First, you need to download the plug-in with ISAPI rewrite. Download path
Http://www.helicontech.com/download/#isapi_rewrite
Generally, the free version can be [isapi_rewrite lite x64 release (freeware]
Then open IIS-website properties-ISAPI filter-add-(the name can be written as needed, and the executable file is directed to the installed isapi_rewrite.dll.
After you confirm the return result, if the Green Arrow is displayed, the installation is complete, and the red color will be re-checked...
Go to the directory of the rewrite plug-in you have installed and find httpd. ini. First, remove its "read-only" attribute and then write the corresponding regular expression ..
In the directory, note that it is the directory, because the regular expression I write will be based on the directory, or the Error 404 will occur !!!
Create a rewrite. asp file, which is written
<% = Request. querystring ("Inso") %>
Then RegEx
Rewriterule/Rewrite-([0-9, A-Z] * pai.html/Rewrite. asp /? Inso = $1
Then input http: // 127.0.0.1/Rewrite. asp in IE? Inso = 1000000000000 or http: // 127.0.0.1/The rewrite-1000000000000.html can display "1000000000000", then prove that your url rewrite is successful!
---------------------------------------------------
---------------------------------------------------
Recently I have studied URL rewrite, which is actually an address rewriting using URL rewrite. The advantage of this is that it is more conducive to search engine query and indexing and is more friendly.
The specific implementation method is as follows:
1. Download the ISAPI rewrite component
Click here to download
2. Download and decompress the package to any folder. For Windows 2003 IIS6, You need to grant the iis_wpg account read permission to the folder.
3. In IIS, right-click a site, properties, ISAPI filter, add, Filter Name rewrite, and click the executable file to browse and find the decompressed directory rewrite. dll.
4. Restart IIS to support URL rewriting rules.
5. Modify the httpd. ini file in the decompressed Directory, which saves the URL rewriting rules.
Add a rewriterule/Article _ (/d +)/. html/article/. asp /? Id = $1
Yisi switched all the addresses of article-n.html to article. asp? Id = N
Friends familiar with regular expressions can also hate the flexibility to create their own rewrite rules.
Post: Unknown Original Author