What is a URL rewrite (url Rewrite)? URL rewriting is the process of redirecting incoming WEB requests to other URLs.
56 Host Network provides versatile http://www.aliyun.com/zixun/aggregation/14840.html "> Virtual host full support asp php asp.net Jscript shtml html htm Scripts such as XML support pseudo static!
We know that there are mod_rewrite in Apache to implement URL rewriting (URL Rewrite), but IIS does not take this feature, so we need to use Third-party components to implement it. There are actually several Rewirte components under IIS that are loaded and then implemented URL rewriting through an ISAPI filter.
One of the more widely used is the ISAPI Rewrite, which supports user-defined Httpd.ini files, as long as they are placed in the root directory of the site. This greatly facilitates the user to modify the URL rewrite rules themselves.
The ISAPI rewrite is a powerful URL-handling engine based on regular expressions, which he uses essentially like Apache Mod_rewrite, but is designed specifically for Microsoft's Internet Information Server (IIS).
For a set of thought virtual host users, if you need to use the function of URL rewrite, only need to create a Httpd.ini file in the root directory of the site, Httpd.ini is a text file, which contains the URL rewrite rules of URLs rewrite, the general format is as follows:
[Isapi_rewrite]
Rewriterule ^/(. *)/default.php