2

I'm using the UrlRewriter.NET library to implement url rewriting for my asp.net website. The rewriting rules are currently being read from the web.config file like this

<rewriter>
  <rewrite url="/test-web-page" to="~/realwebpage.aspx"/>
</rewriter>

How do I make the library read my rewriting rules from another file rather than the web.config?

Rüdiger Hanke
  • 6,215
  • 2
  • 38
  • 45
Quannt
  • 2,035
  • 2
  • 21
  • 29

1 Answers1

0

Yes you can - it is mentioned here on this page http://urlrewriter.net/ interesting looking at their examples the do not specify exactly hw to do it. But I did some digging on their support forum and found this example:

<rewriter configSource="YOURREWRITEFILE"> 
    </rewriter> 

Full dialogue can be read here:

https://groups.google.com/forum/?fromgroups#!searchin/UrlRewriter/external$20config/urlrewriter/TgKVlJ9bO_s/CgtEEpcMIrkJ

Luke Baughan
  • 4,658
  • 3
  • 31
  • 54