[otp] How to rewrite URLs like www.website.com/username to .aspx page

Hi all,

How to rewrite URLs like www.website.com/username to .aspx page.

When ever a user requests for www.website.com/username  I have to first parse the URL get the UserName part of the URL ,authenticate ( database authentication and UserName is unique for each user)and  fill the current contexts profile with this users info if authenticated and finally redirect to landing page of the site.

I researched and found that this can be done by httpURLRewriter module.

Can someone pls provide sample code and also let me know if any changes have to be done at IIS level.

Thanks,

Shilpa