Posted By

miziomon on 11/28/06


Tagged


Versions (?)

urlrewriting.net web.config


 / Published in: XML
 

URL: http://www.urlrewriting.net/

web.config

  1. <?xml version="1.0"?>
  2. <configuration>
  3. <configSections>
  4. <section name="urlrewritingnet"
  5. requirePermission ="false"
  6. type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter" />
  7. </configSections>
  8.  
  9. <urlrewritingnet
  10. rewriteOnlyVirtualUrls="true"
  11. contextItemsPrefix="QueryString"
  12. defaultPage = "default.aspx"
  13. defaultProvider="RegEx"
  14. xmlns="http://www.urlrewriting.net/schemas/config/2006/07" >
  15. <rewrites>
  16. <add name="RewriteOnDomain" virtualUrl="^http\://(.*)/SampleWeb/domain/(.*)/Detail(.*).aspx"
  17. rewriteUrlParameter="ExcludeFromClientQueryString"
  18. destinationUrl="~/Default.aspx?language=$3&amp;id=$4;&amp;domain=$1"
  19. rewrite="Domain"
  20. ignoreCase="true" />
  21.  
  22. <add name="Rewrite" virtualUrl="^~/(.*)/Detail(.*).aspx"
  23. rewriteUrlParameter="ExcludeFromClientQueryString"
  24. destinationUrl="~/Default.aspx?language=$1&amp;id=$2"
  25. ignoreCase="true" />
  26.  
  27. <add name="RedirectInApplication" virtualUrl="^~/(.*)/Default.aspx"
  28. rewriteUrlParameter="ExcludeFromClientQueryString"
  29. destinationUrl="~/$1/Detail_Redirected.aspx"
  30. redirect="Application"
  31. redirectMode="Permanent"
  32. ignoreCase="true" />
  33.  
  34.  
  35. <add name="KickBrowserToDomain" virtualUrl="^http\://(.*)/SampleWeb/kickto/(.*).aspx"
  36. rewriteUrlParameter="ExcludeFromClientQueryString"
  37. destinationUrl="http://$2?source=$1"
  38. redirect="Domain"
  39. redirectMode="Permanent"
  40. ignoreCase="true" />
  41. </rewrites>
  42. </urlrewritingnet>
  43.  
  44. <appSettings/>
  45. <system.web>
  46. <customErrors mode="Off">
  47. </customErrors>
  48. <httpModules>
  49. <add name="UrlRewriteModule"
  50. type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
  51. </httpModules>
  52. <compilation debug="true" />
  53. </system.web>
  54. </configuration>

Report this snippet  

You need to login to post a comment.