开发者

Url rewrite question

开发者 https://www.devze.com 2023-01-08 04:22 出处:网络
When you have done your url rewrite for a url what happens when you use your code behind file and use request.querystring when there aren\'t any cos you开发者_运维百科 url has been re-written. I haven

When you have done your url rewrite for a url what happens when you use your code behind file and use request.querystring when there aren't any cos you开发者_运维百科 url has been re-written. I haven't implemented url re-writing yet and want to.


Well, not sure if I understand your question...

If you use url rewriting the user sees on the browser a url like this one

www.yourdomain.com/category1/product1

While you see on the code behind something like this

www.yourdomain.com?cat=1&prod=1

The friendly url is converted to the "ulgy" format before reaching your page logic, so the querystring will be there and ready to be processed.

0

精彩评论

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