asp.net - IIS 7 URL Rewrite and Web.config -


I'm new to this, but tried to research it. I can not find a suitable answer

I am trying to rewrite some pages with the same name, but different directories on a new page. For example:

/dir1/oldpage.aspx

/dir2/oldpage.aspx

/dir1/dir2/oldpage.aspx

< P> Rewrite all places of oldpage.aspx at /new/newpage.aspx

I tried to lower it, but it does not work. Any suggestion would be appreciated

  & lt; System.webServer & gt; & Lt; Rewrite & gt; & Lt; Rules & gt; & Lt; Rule name = "special reserved" stop processing = "true" & gt; & Lt; Mail url = "^ page $" / & gt; & Lt; Action Type = "Redirect" url = "/ page.html" / & gt; & Lt; / Rules & gt; & Lt; / Rules & gt; & Lt; / Rewrite & gt; & Lt; /system.webServer>  

means your match pattern

you

  & lt; Mail url = ". * Oldpage \ .aspx" />  

"^" - This means that the pattern should start with "page".

"$" - This means that there is no letter after the page


Comments