Isapirewrite pseudo static settings for virtual hosts

Source: Internet
Author: User
Keywords Virtual host virtual host pseudo static Isapirewrite

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.