开发者

how can we rewrite by Programing? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Clo开发者_JAVA技巧sed 11 years ago.

I want to rewrite my URLs. Currently I am using the Query String in lots of places in my project, but my client wants to hide the Query Strings. How can I do this by Programing?


I would recommend URL Rewrite Module - you won't have to touch your application at all.

The Microsoft URL Rewrite module 2.0 includes the following key features:

  • Rules-based URL rewriting engine. Rewrite rules define the logic used to analyze request URLs and map them to rewite URLs when
    the request URL matches a defined rule. Web server and site
    administrators can use rewrite rule sets to define URL rewriting
    logic.

  • Regular expression pattern matching. Rewrite rules can use regular expression syntax for pattern matching as defined in ECMA-262.

  • Wildcard pattern matching. Rewrite rules can use wildcard syntax for pattern matching.

  • Global and distributed rewrite rules. URL Rewrite uses global rules to define server-wide URL rewriting logic. These rules are defined within the applicationHost.config file, and they supercede rules configured at lower levels in the configuration hierarchy. The module also uses distributed rules to define URL rewrite logic specific to a particular configuration scope. This type of rule can be defined on any configuration level by using Web.config files.

  • Access to server variables and HTTP headers. Server variables and HTTP headers provide additional information about current HTTP requests. This information can be used to configure rewrite rules or
    to compose the output URL.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜