views:

23

answers:

1

How can i rewrite the URL to have application name + querystring

for example i have a web application with the following querystring

mywebsite/default.aspx?UserName=xyz

How can i have URL with the folllowing

mywebsite?xyz

i have managed to implement RewriteModule using HttpApplication on Begin_request event and currently i can use this query

http://mywebsite/?xyz ,

is there a way to have the url without "/"

A: 

try,

rewrite ^/default\.aspx\?UserName=(.*)$ /?$1 last;
WisdomFusion