Author: slystoned | Posted on: 9/13/2010 8:27:33 AM | Views : 319

Hi all,
I have the following regular expression replacement:

<add key="^/([^/]*)\.aspx\?" value="/default.aspx?pagename=$1&"/>
What this is used for is URL re-writing, i.e. if a page comes in with the path "/test.aspx", it goes to the actual path which is "/default.aspx?pagename=test"
This works fine, but it catches all page names. I would like to exclude a particular page name so it is not rewritten, for example if the page was called "exclude.aspx" it would not rewrite to "/default.aspx?pagename=exclude" but stay as "exclude.aspx".
How do I modify
^/([^/]*)\.aspx\?

Go to the complete details ...