2010-06-18 3 views

Répondre

0

Selon la version d'IIS que vous utilisez et si vous y avez accès et si vous souhaitez écrire du code personnalisé ou configurer une fonctionnalité de produit.

IIS5, IIS6:

http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx

IIS7, IIS7.5:

URL Rewrite:

http://learn.iis.net/page.aspx/460/using-the-url-rewrite-module/

Voici un exemple d'une règle pour rediriger http://.../checkout.aspx https :

<rule name="CheckoutToSSL" stopProcessing="true"> 
    <match url="^checkout.aspx*" ignoreCase="true" /> 
    <conditions> 
     <add input="{HTTPS}" pattern="off" ignoreCase="true" /> 
    </conditions> 
    <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}{REQUEST_URI}" /> 
</rule> 

ASP.NET Routing:

http://msdn.microsoft.com/en-us/library/cc668201.aspx

Différence entre la réécriture d'IIS7,7.5 et ASP.NET routage

http://learn.iis.net/page.aspx/496/iis-url-rewriting-and-aspnet-routing/

Questions connexes