IIS rewrite program dedicated to Bo-blog for Windows Server

Source: Internet
Author: User

This article provides a scheme for Bo-blog users to implement URL rewrite on IIS 5.1/6.0 server in windows. The advantage of this solution is that it does not require any component support and does not need to install ISAPI filters (there are many on-site, but it is not recommended to use them for free). The disadvantage is that it is the same as implementing rewrite through ISAPI filters, at first, you also need the help of the IIS administrator.

The implementation method is as follows:

A. Download the attachment and open the iisrewrite. php file in the text editor:
$ Blogdir = 'blog /';
Change to the installation directory of Bo-blog. For example
$ Blogdir = 'weblog /';
(If it is installed in the root directory, write $ blogdir = ''; otherwise, add a slash at the end of the path as in the preceding example)
Then upload the file to the wwwroot of the website.

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

B. run IIS Admin and set the website for rewrite. In the custom error menu, find the "404" error option, edit its attributes, and set the message type to URL (important, must be set to URL, otherwise, the server will give a 404 response to a page that does not exist, and after the URL is set, the HTTP Response of the page after rewrite is normal 200 ). Set the address to/iisrewrite. php.

C. Set the URL optimization method to "Apache URL Rewrite" in the blog background ". Now you can useProgram.

Currently, this setting is made for the temporary blog on this site.
Local download

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.