<p>How do I rewrite a URL in ASP.NET?</p>
<p>I would like users to be able to go to</p>
<pre><code>http://www.website.com/users/smith
</code></pre>
<p>instead of</p>
<pre><code>http://www.website.com/?user=smith
</code></pre>

[{'answer_id': 2268, 'author': 'Nick Berardi', 'author_id': 17, 'author_profile': 'https://Stackoverflow.com/users/17', 'pm_score': 6, 'selected': True, 'text': '<p>Try the Managed Fusion Url Rewriter and Reverse Proxy:</p>\n\n<p><a href="http://urlrewriter.codeplex.com" rel="noreferrer">http://urlrewriter.codeplex.com</a></p>\n\n<p>The rule for rewriting this would be:</p>\n\n<pre><code># clean up old rules and forward to new URL\nRewriteRule ^/?user=(.*)  /users/$1 [NC,R=301]\n\n# rewrite the rule internally\nRewriteRule ^/users/(.*)  /?user=$1 [NC,L]\n</code></pre>\n'}, {'answer_id': 7793, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': '<p>I have used an httpmodule for url rewriting from <a href="http://www.urlrewriting.net/" rel="nofollow noreferrer">www.urlrewriting.net</a> with great success (albeit I believe a much earlier, simpler version)</p>\n\n<p>If you have very few actual rewriting rules then url mappings built in to .NET 2.0 are probably an easier option, there are a few write ups of these on the web, the <a href="https://web.archive.org/web/20210513223749/http://aspnet.4guysfromrolla.com/articles/011007-1.aspx" rel="nofollow noreferrer">4guysfromrolla</a> one seems fairly exhaustive but as you can see they don\'t support regular expression mappings are are as such rendered fairly useless in a dynamic environment (assuming "smith" in your example is not a special case then these would be of no use)</p>\n'}, {'answer_id': 3838867, 'author': 'Sam Saffron', 'author_id': 17174, 'author_profile': 'https://Stackoverflow.com/users/17174', 'pm_score': 3, 'selected': False, 'text': '<p>Microsoft now ships an official URL Rewriting Module for IIS: <a href="http://www.iis.net/download/urlrewrite" rel="noreferrer">http://www.iis.net/download/urlrewrite</a> </p>\n\n<p>It supports most types of rewriting including setting server variables and wildcards.</p>\n\n<p>It also will exist on all Azure web instances out of the box.</p>\n'}]
['https://Stackoverflow.com/questions/2262', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/383/']