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...