[英]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. 完成URL的URL重写后,当您在文件后面使用代码并在没有URL的任何COS被重写时使用request.querystring会发生什么。 I haven't implemented url re-writing yet and want to.
我尚未实现url重写,并且想要实现。
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. 在到达页面逻辑之前,友好的url被转换为“ ulgy”格式,因此querystring将在那里并且可以进行处理。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.