开发者

Implement Rewrite Module to have ApplicationName with querystring

开发者 https://www.devze.com 2022-12-24 18:52 出处:网络
How can I rewrite the URL to have application name + querystring? For example I have a web application with the following querystring

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开发者_StackOverflow中文版 to have the url without /?


try,

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

精彩评论

暂无评论...
验证码 换一张
取 消