IISRewrite project_php tutorial dedicated to Bo-Blog for Windows Server

Source: Internet
Author: User
The IISRewrite program dedicated by Bo-Blog to the Windows Server. This article provides a scheme for Bo-Blog users to implement URLRewrite on Windows IIS5.16.0 server. The advantage of this solution is that it does not require any component support and does not need to install ISAPI filters (this article will provide 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 use the url rewrite function of the program like Apache users.

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

Implement URL Rewrite on servers 5.1/6.0. The advantage of this solution is that you do not need to install ISAPI filter (net...

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.