Setting URL Rewrites

Setting URL Rewrites

URL Rewrite Module

  • IIS add-on from Microsoft
  • Creates rules used to map complex request URLs to simpler friendly URLs
  • URL rewriting logic is defined by rewrite rules defined in web.config files
  • Server-wide URL rewriting logic is defined by global rules defined in the applicationHost.config file

Rewrite Rules

  • Rewrite rules analyze request URLs and map them to defined rewite URLs when there is a match
  • Rewrite rules can include string manipulation functions, wildcards, and regular expressions
  • Rules can also issue HTTP redirects, abort requests, and send custom status codes to clients