1

I am trying to achieve the following rewrite URL in IIS 7:

subdomain.domain.com/username should become subdomain.domain.com/?username

When I try to match the pattern /([^/]+) and test it with /username, it gives me

{R:0} /username
{R:1} username

and for the rewrite URL I have used /?{R:1}

However when I test it in a browser the site throws a 404 error and does not rewrite the URL.

Please what can I be doing wrong.

Daniele Santi
  • 2,529
  • 1
  • 25
  • 22
Templar
  • 11
  • 1

0 Answers0