Static URL can improve search engine crawling, open the Web server, this function requires a corresponding increase in the Rewrite rules, and will slightly increase the burden on the server. This tutorial explains how to configure the IIS environment Rewrite rules for each product.
one, first download Rewrite.zip the package, extract to any directory on any disk. Rewrite rules for each product
different packages, please select the appropriate product to download the corresponding Rewrite rules.
Discuz! 6.0.0/6.1.0 of Rewrite Rules Download:
UCenter Home1.0.0 of Rewrite Rules Download:
SupeSite6.0_X-Space4.0_UC of Rewrite Rules Download:
SupeV of Rewrite Rules Download:
download each product Rewrite rules and renamed as shown below store:
II configuration
Discuz!, UCHome, SupeSite / X-Space, SupeV the Rewrite configuration similar to the following Discuz! 6.0.0/6.1.0's Rewrite rules configuration example shows how to configure the IIS environment Rewrite Rules.
IIS Manager, choose the site, right-select >
picture above click the choose to download the uncompressed Discuz! Rewrite Rules directory Rewrite.dll file
're finished click =>
Rewrite Rule Configuration successful, but this time browsing the forums still are not pseudo-static address, but also the background to the forum can only be set accordingly.
forum background => Global => optimization settings, below the red zone option:
, you can choose according to your needs, can select up to five, do not choose not to take effect.
The server does not have this problem, you can choose
the above two is set up the
this time to return to the Forum Home Just open a forum or a post to see Discuz! the Rewrite pseudo-static configuration successful!
three, each product Rewrite Rules
httpd.ini configuration file as follows
copy content to the clipboard Code:
[ISAPI_Rewrite] # 3600 = 1 hourCacheClockRate 3600RepeatLimit 32 # Discuz! Rewrite Rule # independent host user # Protect httpd.ini and httpd.parse.errors files # from accessing through HTTPRewriteRule ^(.*)/ archiver / ((fid | tid ) - [ w -] + . html) ?*(.*)$ $ 1/archiver/index . php ? $ 2 & $ 4RewriteRule ^(.*)/ forum-([0-9] +)-([ 0-9] +) . html ?*(.*)$ $ 1/forumdisplay . php ? fid = $ 2 & page = $ 3 & $ 4RewriteRule ^(.*)/ thread- ([0-9 ]+)-([ 0-9 ]+)-([ 0-9] +) . html ?*(.*)$ $ 1/viewthread . php ? tid = $ 2 & extra = page % 3D $ 4 & page = $ 3 & $ 4RewriteRule ^(.*)/ space-(username | uid )-(.+) . html ?*(.*)$ $ 1/space . php ? $ 2 = $ 3 & $ 4RewriteRule ^(.*)/ tag-(. +) . html ?*(.*)$ $ 1/tag . php ? name = $ 2 & $ 3 # SupeSite Rewrite Rule # # modify the host user independent in the following statement / supesite SupeSite change directory to your address, if the program on the root directory, add / supesite modify / RewriteRule ^ / supesite / ([0-9] +) $ / supesite / index . php ? uid / $ 1 [L] RewriteRule ^ / supesite / ([0-9] +) / spacelist (.+)$ / supesite / index . php ? uid / $ 1/action / spacelist / type $ 2 [L] RewriteRule ^ / supesite / ([0-9] +) / viewspace (.+)$ / supesite / index . php ? uid / $ 1/action/viewspace/itemid $ 2 [L] RewriteRule ^ / supesite / ([0-9] +) / viewbbs (.+)$ / supesite / index . php ? uid / $ 1/action/viewbbs/tid $ 2 [L] RewriteRule ^ / supesite / ([0 - 9 ]+)/(.*)$ / supesite / index . php ? uid / $ 1 / $ 2 [L] RewriteRule ^ / supesite / action (.+)$ / supesite / index . php ? action $ 1 [ ,],[? action / viewnews / itemid $ 1 [L] RewriteRule ^ / supesite / viewthread (.+)$ / supesite / index . php ? action / viewthread / tid $ 1 [L] RewriteRule ^ / supesite / mygroup (.+)$ / supesite / index . php ? action / mygroup / gid $ 1 [L] # UCHome Rewrite Rules # # modify the host user independent in the following statement / uchome uchome change directory to your address, if the program on the root directory, Please / uchome modify / RewriteRule ^ / uchome / (space | network )-(.+) . html $ / uchome / $ 1 . php ? rewrite = $ 2 [L] RewriteRule ^ / uchome / (space | network ) . html $ / uchome / $ 1 . php [L] RewriteRule ^ / uchome / ([0-9] +) $ / uchome / space . php ? uid = $ 1 [L] # SupeV Rewrite Rules # Independent host user RewriteRule ^(.*)/ ivideo (-tv-([0-9 ]+))?(- ti-([0-9 ]+))?(- tc-([0-9] +) )? (-page-([0-9 ]+))? . html $ $ 1/ivideo . php ? tv = $ 3 & ti = $ 5 & tc = $ 7 & page = $ 9RewriteRule ^ (. *) / ispecial (-tv-([0-9 ]+))?(- ti-([0-9 ]+))?(- tc-([0-9 ]+))?(- page- ([0-9 ]+))? . html $ $ 1/ispecial . php ? tv = $ 3 & ti = $ 5 & tc = $ 7 & page = $ 9RewriteRule ^(.*)/ icategory . html $ $ 1/icategory . phpRewriteRule ^(.*)/ category-cid-([0-9 ]+)(- tag-([^-]*))?(- timelimit-([0-9] + ))?(- orderlimit-([0-9 ]+))?(- page-([0-9 ]+))? . html $ $ 1/category . php ? cid = $ 2 & tag = $ 4 & timelimit = $ 6 & orderlimit = $ 8 & page = $ 10RewriteRule ^(.*)/ vspace-(mid | username )-(.+) . html $ $ 1/vspace . php ? $ 2 = $ 3 RewriteRule ^(.*)/ video-(vid | ivid )-(.+) . html $ $ 1/video . php ? $ 2 = $ 3RewriteRule ^(.*)/ special-spid-([0-9 ] +) . html $ $ 1/special . php ? spid = $ 2 .
one, first download Rewrite.zip the package, extract to any directory on any disk. Rewrite rules for each product
different packages, please select the appropriate product to download the corresponding Rewrite rules.
Discuz! 6.0.0/6.1.0 of Rewrite Rules Download:
UCenter Home1.0.0 of Rewrite Rules Download:
SupeSite6.0_X-Space4.0_UC of Rewrite Rules Download:
SupeV of Rewrite Rules Download:
download each product Rewrite rules and renamed as shown below store:
II configuration
Discuz!, UCHome, SupeSite / X-Space, SupeV the Rewrite configuration similar to the following Discuz! 6.0.0/6.1.0's Rewrite rules configuration example shows how to configure the IIS environment Rewrite Rules.
IIS Manager, choose the site, right-select >
picture above click the choose to download the uncompressed Discuz! Rewrite Rules directory Rewrite.dll file
're finished click =>
Rewrite Rule Configuration successful, but this time browsing the forums still are not pseudo-static address, but also the background to the forum can only be set accordingly.
forum background => Global => optimization settings, below the red zone option:
, you can choose according to your needs, can select up to five, do not choose not to take effect.
The server does not have this problem, you can choose
the above two is set up the
this time to return to the Forum Home Just open a forum or a post to see Discuz! the Rewrite pseudo-static configuration successful!
three, each product Rewrite Rules
httpd.ini configuration file as follows
copy content to the clipboard Code:
[ISAPI_Rewrite] # 3600 = 1 hourCacheClockRate 3600RepeatLimit 32 # Discuz! Rewrite Rule # independent host user # Protect httpd.ini and httpd.parse.errors files # from accessing through HTTPRewriteRule ^(.*)/ archiver / ((fid | tid ) - [ w -] + . html) ?*(.*)$ $ 1/archiver/index . php ? $ 2 & $ 4RewriteRule ^(.*)/ forum-([0-9] +)-([ 0-9] +) . html ?*(.*)$ $ 1/forumdisplay . php ? fid = $ 2 & page = $ 3 & $ 4RewriteRule ^(.*)/ thread- ([0-9 ]+)-([ 0-9 ]+)-([ 0-9] +) . html ?*(.*)$ $ 1/viewthread . php ? tid = $ 2 & extra = page % 3D $ 4 & page = $ 3 & $ 4RewriteRule ^(.*)/ space-(username | uid )-(.+) . html ?*(.*)$ $ 1/space . php ? $ 2 = $ 3 & $ 4RewriteRule ^(.*)/ tag-(. +) . html ?*(.*)$ $ 1/tag . php ? name = $ 2 & $ 3 # SupeSite Rewrite Rule # # modify the host user independent in the following statement / supesite SupeSite change directory to your address, if the program on the root directory, add / supesite modify / RewriteRule ^ / supesite / ([0-9] +) $ / supesite / index . php ? uid / $ 1 [L] RewriteRule ^ / supesite / ([0-9] +) / spacelist (.+)$ / supesite / index . php ? uid / $ 1/action / spacelist / type $ 2 [L] RewriteRule ^ / supesite / ([0-9] +) / viewspace (.+)$ / supesite / index . php ? uid / $ 1/action/viewspace/itemid $ 2 [L] RewriteRule ^ / supesite / ([0-9] +) / viewbbs (.+)$ / supesite / index . php ? uid / $ 1/action/viewbbs/tid $ 2 [L] RewriteRule ^ / supesite / ([0 - 9 ]+)/(.*)$ / supesite / index . php ? uid / $ 1 / $ 2 [L] RewriteRule ^ / supesite / action (.+)$ / supesite / index . php ? action $ 1 [ ,],[? action / viewnews / itemid $ 1 [L] RewriteRule ^ / supesite / viewthread (.+)$ / supesite / index . php ? action / viewthread / tid $ 1 [L] RewriteRule ^ / supesite / mygroup (.+)$ / supesite / index . php ? action / mygroup / gid $ 1 [L] # UCHome Rewrite Rules # # modify the host user independent in the following statement / uchome uchome change directory to your address, if the program on the root directory, Please / uchome modify / RewriteRule ^ / uchome / (space | network )-(.+) . html $ / uchome / $ 1 . php ? rewrite = $ 2 [L] RewriteRule ^ / uchome / (space | network ) . html $ / uchome / $ 1 . php [L] RewriteRule ^ / uchome / ([0-9] +) $ / uchome / space . php ? uid = $ 1 [L] # SupeV Rewrite Rules # Independent host user RewriteRule ^(.*)/ ivideo (-tv-([0-9 ]+))?(- ti-([0-9 ]+))?(- tc-([0-9] +) )? (-page-([0-9 ]+))? . html $ $ 1/ivideo . php ? tv = $ 3 & ti = $ 5 & tc = $ 7 & page = $ 9RewriteRule ^ (. *) / ispecial (-tv-([0-9 ]+))?(- ti-([0-9 ]+))?(- tc-([0-9 ]+))?(- page- ([0-9 ]+))? . html $ $ 1/ispecial . php ? tv = $ 3 & ti = $ 5 & tc = $ 7 & page = $ 9RewriteRule ^(.*)/ icategory . html $ $ 1/icategory . phpRewriteRule ^(.*)/ category-cid-([0-9 ]+)(- tag-([^-]*))?(- timelimit-([0-9] + ))?(- orderlimit-([0-9 ]+))?(- page-([0-9 ]+))? . html $ $ 1/category . php ? cid = $ 2 & tag = $ 4 & timelimit = $ 6 & orderlimit = $ 8 & page = $ 10RewriteRule ^(.*)/ vspace-(mid | username )-(.+) . html $ $ 1/vspace . php ? $ 2 = $ 3 RewriteRule ^(.*)/ video-(vid | ivid )-(.+) . html $ $ 1/video . php ? $ 2 = $ 3RewriteRule ^(.*)/ special-spid-([0-9 ] +) . html $ $ 1/special . php ? spid = $ 2 .