To enable your IIS server to support pseudo-static rewriting, follow these steps:
1. Install the rewrite plug-in rewrite. dll
If your IIS server has loaded rewrite. dll, you do not need to download it.
Rewrite. dll file:Http://blog.hxxsh.com/UploadFiles/2006-10/1013525016.rar
Load rewrite. dll
Add filter on IIS ISAPI
Filter Name: Re
Select rewrite. DLL for the executable file!
2. Configure httpd. ini
Open your httpd. ini and find
[Isapi_rewrite]
#3600 = 1 hour
Cacheclockrate 3600
Repeatlimit 32
# Protect httpd. ini and httpd. parse. Errors files
# From Accessing through HTTP
Rewriterule ^ (. *)/archiver/([a-z0-9 \-] + \. html) $1/archiver/Index \. php \? $2
Rewriterule ^ (. *)/Forum-([0-9] +)-([0-9] +) \. html $1/Forumdisplay \. php \? FID = $2 & page = $3
Rewriterule ^ (. *)/thread-([0-9] +)-([0-9] +)-([0-9] + )\. HTML $1/viewthread \. PHP \? Tid = $2 & extra = Page \ % 3d $4 & page = $3
Rewriterule ^ (. *)/profile-(username | UID)-(. + ?) \. Html $1/viewpro \. php \? $2 = $3
The above is discuz! The configuration code officially provided. Pay attention to the regular format.
3. Application
For example, read. php? Bl_id = 123 & bu_id = 456 pseudo-static/html/123/456 .html
You can write as follows:
Rewriterule ^ (. *)/html/([0-9] +)/([0-9] +) \. html $1/read \. php \? Bl_id = $2 & bu_id = $3 click to add to favorites: "How to Set pseudo-static html (URL rewrite) under IIS"
To enable your IIS server to support pseudo-static rewriting, follow these steps:
1. Install the rewrite plug-in rewrite. dll
If your IIS server has loaded rewrite. dll, you do not need to download it.
Rewrite. dll file:Http://blog.hxxsh.com/UploadFiles/2006-10/1013525016.rar
Load rewrite. dll
Add filter on IIS ISAPI
Filter Name: Re
Select rewrite. DLL for the executable file!
2. Configure httpd. ini
Open your httpd. ini and find
[Isapi_rewrite]
#3600 = 1 hour
Cacheclockrate 3600
Repeatlimit 32
# Protect httpd. ini and httpd. parse. Errors files
# From Accessing through HTTP
Rewriterule ^ (. *)/archiver/([a-z0-9 \-] + \. html) $1/archiver/Index \. php \? $2
Rewriterule ^ (. *)/Forum-([0-9] +)-([0-9] +) \. html $1/Forumdisplay \. php \? FID = $2 & page = $3
Rewriterule ^ (. *)/thread-([0-9] +)-([0-9] +)-([0-9] + )\. HTML $1/viewthread \. PHP \? Tid = $2 & extra = Page \ % 3d $4 & page = $3
Rewriterule ^ (. *)/profile-(username | UID)-(. + ?) \. Html $1/viewpro \. php \? $2 = $3
The above is discuz! The configuration code officially provided. Pay attention to the regular format.
3. Application
For example, read. php? Bl_id = 123 & bu_id = 456 pseudo-static/html/123/456 .html
You can write as follows:
Rewriterule ^ (. *)/html/([0-9] +)/([0-9] +) \. html $1/read \. php \? Bl_id = $2 & bu_id = $3 click to add to favorites: "How to Set pseudo-static html (URL rewrite) under IIS"