For a more user-friendly environment, I wish to have the page extensions removed and query strings to not be visible. For example, from http://www.example.com/news.aspx?id=123 I want it to be http://www.example.com/news/123. How can I obtain it?
I also wanted to take opportunity of this question to put two other questions:
- When using the URL rewriting, do I have to specify a rule for each page?
- Which is better to use for URL rewriting in ASP.NET - the
.htaccessfile or the setting of rules in theweb.config?
Thanks.