How to make URL Rewriting with IIS7?
en:How to make URL Rewriting with IIS7?
he:כיצד להפוך את ה-URL משכתב עם IIS7?
ro:Cum sa faci URL-ul rescrierea cu IIS7?
ru:Как сделать переписывания URL-адресов с IIS7?
pl:Jak zrobić URL Rewriting z IIS7?
ja:IIS7 を使用して URL 書き換えを作る方法?
ar:كيفية جعل إعادة كتابة URL مع IIS7؟
zh:如何使 URL 重写与 IIS7?
de:Wie URL-Rewriting mit IIS7 zu machen?
nl:Hoe maak URL herschrijven met IIS7?
it:Come fare la riscrittura degli URL con IIS7?
pt:Como fazer a regravação de URL com IIS7?
es:¿Cómo hacer las reescrituras de URL con IIS7?
fr:Comment faire de l'URL Rewriting avec IIS7 ?
This article has been created by an automatic translation software. You can view the article source here.
Problem
I have a Windows hosting 2008 Server and IIS 7 and wishes to make the URL Rewriting how ?
Solution
With IIS 7, accommodation Windows saw a new feature, long desired, appear. This feature is none other than the URL Rewriting support, supported natively by the Server IIS Web 7, through a specific module.
The rewrite rules are in XML in the file Web.config of the web site.
Here is an example of XML for the URL Rewriting :
<rewrite> <rewriteMaps > <rewriteMap name ="StaticRewrite s "> <Add key ="/Article 1" value ="/article.aspx ?ID =1&title=Some-title " /> <Add key ="/Some-title " value="/article.aspx?ID =1&title=Some-title " /> <Add key="/post/some-title.html" value="/article.aspx?ID =1&title=some-title" /> </rewriteMap> </rewriteMaps> <rules> <rule name ="Rewrite Rule 1 for StaticRewrites " stopProcessing ="True "> <match url=".*" /> <conditions> <add input ="{StaticRewrites:{REQUEST_URI }}" pattern ="(.+)" /> </conditions> <action type ="Rewrite" url="{C:1}" appendQueryString ="False "/> </rule> </rules> </rewrite>
Concrete example : http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module
Sample application for Wordpress : http://learn.iis.net/page.aspx/466/enabling-pretty-permalinks-in-wordpress/
For more information : http://learn.iis.net/page.aspx/460/using-url-rewrite-module/
Enable comment auto-refresher