Discuz7.2 Forum supports pseudo-static addition of sitemap modified version

Source: Internet
Author: User

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 !!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.