First, check whether the server supports pseudo-static data.
When purchasing a space
Configuration.
Go to the background-global-optimization-enable pseudo-static.
Update cache to visit forum again
Test address: http://www.lsf.cc/thread-280-1-1.html
We can see that the forum link on the home page is already a static address.
Discuz7.2 pseudo-static support is mainly post
This setting is not supported in some places
But it doesn't matter much.
If not
Create an HTTP. ini file
Write content
[Isapi_rewrite] <br/> #3600 = 1 hour <br/> cacheclockrate 3600 <br/> repeatlimit 32 <br/> # discuz 7.2 <br/> rewriterule ^ (. *)/archiver/([a-z0-9/-] + /. html) $1/archiver/index /. PHP /? $2 <br/> rewriterule ^ (. *)/Forum-([0-9] +)-([0-9] + )/. HTML $1/Forumdisplay /. PHP /? FID = $2 & page = $3 <br/> rewriterule ^ (. *)/thread-([0-9] +)-([0-9] +)-([0-9] + )/. HTML $1/viewthread /. PHP /? Tid = $2 & extra = page/% 3d $4 & page = $3 <br/> rewriterule ^ (. *)/profile-(username | UID )-(. + )/. HTML $1/viewpro /. PHP /? $2 = $3 <br/> rewriterule ^ (. *)/space-(username | UID)-(. +)/. html /? * (. *) $1/SPACE/. php /? $2 = $3 & $4 <br/> rewriterule ^ (. *)/Tag-(. +)/. html /? * (. *) $1/Tag/. php /? Name = $2 & $3 <br/>
Upload to the Forum root directory
Modify sitemap
Baidu sitemap can be regenerated once.
The address is static.
However, the rebuild of Google sitemap is still a dynamic suffix.
Two places to be modified
Open getsitemap. Inc. php and plangetsitemap. Inc. php In the plugins folder.
Originally $ url = $ boardurl. "viewthread. php? Tid = ". $ AB [$ I] [TID];
Replace with $ url = $ boardurl. "thread-". $ AB [$ I] [TID]. "-1-1.html ";
Test address: http://www.lsf.cc/forum-16-1.html
------------------
LSF (eternal love of science) Forum
Http://www.lsf.cc
Read with imagination !!!