I have a problem in my web forms ASP.NET app where I would like to rewrite a url from
into
http://example.com/page.aspx?id=abcd
- the abcd part will be unique and I cant create a folder for it
- I want the users to always see the http://example.com/abcd url
- would the solution be the same in Windows Azure?
Can somebody please help me with some hints?
Thank You!
In your web.config, in the system.webServer section put something like this:
Please note that I have copied from the config we have in a production site and modified a little bit… needs testing.
The config should work when you have only words ([a-zA-Z]+), change the pattern to make it work for numbers.
hope it helps