1. On the first page, decompress the mongorewrite.rar file. For example, I put it in the root directory of the D drive.
2. Open the IIS Manager, right-click the website, choose Properties> ISAPI filter> Add> enter a name, select the DLL file path, and click OK. This is the IIS configuration.
3. Configure the httpd. Ini file.
[ISAPI_Rewrite]
The code is as follows: |
Copy code |
#3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd. ini and httpd. parse. errors files
# From accessing through HTTP
RewriteRule ^/index.html $/index. asp
RewriteRule ^/index.html $/index. php
|
4. Put the httpd. Ini file in the root directory of the website, and enter http: // localhost/index.html in the address bar to check whether the file is okay?
Tip: The screenshot of the above ISS pseudo-static configuration is not iis6. If it is iis7 or a later version, there is a difference. I have not tested it here, so I will not introduce it, however, this is very useful in iis6, mainly by downloading Rewrite. dll file and then add isapi.