I am new writing IIS URL Rewrite regular expressions and have put together the following regular expression.

^(.*/?\.?)([^/]*)$

This currently matches the following paths

  1. home
  2. home.
  3. home.aspx
  4. home/about
  5. home/about.aspx and so forth.

Is this the most efficient way to rewrite URLs? Is there a better way?

link|improve this question

72% accept rate
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.