简体   繁体   中英

Url rewrite question

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM