Bo-blog dedicated IIS rewrite program _php instance to Windows Server

Source: Internet
Author: User
This article provides a scenario where a bo-blog user implements a URL rewrite on an IIS 5.1/6.0 server in Windows. The advantage of this scenario is that no component support is required, there is no need to install an ISAPI filter (many online, but the best is not free); The disadvantage is that, as with the implementation of rewrite through an ISAPI filter, the help of the IIS administrator is required at the beginning.

Here's how it's implemented:

A Download the attachment and open the iisrewrite.php file with a text editor, which will start at:
$blogdir = ' blog/';
Modify the installation directory to Bo-blog. Like what
$blogdir = ' weblog/';
(if installed in the root directory, write $blogdir = "; Otherwise, add a slash at the end of the path, as in the previous example)
Then upload the file to the wwwroot of the website.

Note: The rewrite rule contained in this file is suitable for 2.1.0 beta or above, 2.0.3 SP1 not applicable.

B Run IIS Admin, and make the appropriate settings for the Web site that needs to be rewrite. In the custom error menu, find the "404" error option, edit its properties, set the message type to: URL (important, must be set to URL, otherwise it will cause the server to give a 404 response to the nonexistent page, and set as the URL, The HTTP response of the page after rewrite is normal 200). The address is set to/iisrewrite.php.


C to the blog background settings URL optimization method is "Apache URL Rewrite". You can now use the URL rewrite function of the program just like Apache users.

At present, this site's temporary blog has made such a setup.
Local Downloads
  • 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.