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 a Windows IIS 5.1/6.0 server. The advantage of this scenario is that no component support is required and no ISAPI filters need to be installed (there is a lot on the web, but the best is not free); The disadvantage is that, as with the ISAPI filter implementation rewrite, the first requirement is the help of the IIS administrator.

The implementation method is as follows:

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

Note: The rewrite rules contained in this file are suitable for 2.1.0 beta versions, 2.0.3 SP1 are not applicable.

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


C to blog background settings URL optimization method for "Apache URL Rewrite." You can now use the URL rewrite feature of the program like the Apache user.

At present, this site's temporary blog has done such a setting.
Local Downloads

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.