Server IIS pseudo-static configuration diagram tutorial under Windows

  
 

Windows installation pseudo-static is actually very simple, Windows
2003 IIS6 and Windows
7 IIS7.5 are somewhat similar, but not quite the same, we have IIS6 as an example!

First we have a pseudo-static component under Windows. Download the IIS pseudo-static component ——ISAPI_Rewrite3. According to my testing, this component supports .htaccess files.
Then we install IIS pseudo-static component
1. Unzip the downloaded ISAPI_Rewrite3, you will see two files (ISAPI_Rewrite.dll and httpd.conf respectively), extract the entire folder to install in C :\\Program Files\\ISAPI_Rewrite (directory can be customized);
2, overwrite the ISAPI_Rewrite.dll file in the Rewrite crack folder to the program installation directory;
3, open the installation directory Httpd.conf file, enter the following content and save it, so there is no limit on the number of days; RegistrationName= wlqcwinRegistrationCode= 2EAD-35GH-66NN-ZYBA
4, after installation, remember to install the ISAPI_Rewrite3 software directory network service Read permission, otherwise there will be an error that ISAPI_Rewrite cannot be loaded.
5, add to IIS, open the Internet Information Services (IIS) Manager, find the "website", right click to open the "properties" tab, select the "ISAPI filter" tab, click & ldquo ; Add & rdquo;, pop-up "Add /Edit Filter Attributes", "Filter Name" & rdquo; Write ISAPI_Rewrite, this can be customized; & ldquo; executable file & rdquo; here, through the "Browse" The ISAPI_Rewrite.dll file in the static component installation directory can be, the path is C:\\Program Files\\ISAPI_Rewrite\\ISAPI_Rewrite.dll;

After all the way, we restart the IIS Manager, and then open the website properties again. “ISAPI filter", see if the newly added ISAPI_Rewrite turns into a green up arrow? In this case, the pseudo-static configuration is successful.


IIS pseudo-static use method After the IIS pseudo-static configuration is successful, you can use pseudo-static under any IIS Manager —— website to create a new website. You only need to create a new .htaccess file in the root directory of the new website, open it with Notepad, and write the corresponding pseudo-static rules in it.

Test whether IIS pseudo-static is effective

1. Create a new .htaccess file on a separate website (eg: localhost) and write the following rules in the file: RewriteEngine onRewriteBase /RewriteRule ^get -(.*).html /get.asp?id=$1

#Note: RewriteEngin on means that the rewrite function is enabled; RewriteBase /means that the rewritten path starts from the root of the website. 2. Create a new get.asp file under localhost with the following contents: <% response.write("get_id=" & request.querystring("id")) %> 3. In the browser Enter http://localhost/get-123.html and http://localhost/get.asp?id=123 ; if the result is the same, the rewrite is successful.



Here, the configuration of the entire iis pseudo-static environment has been completed, now you can set your website without errors to pseudo-static

Copyright © Windows knowledge All Rights Reserved