Dedecmstag label pseudo-static modification method _ dedecms_CMS tutorial-PHP source code

Source: Internet
Author: User
Dedecmstag label pseudo-static modification method. For more information, see dededecmstag. Dedecms tag label pseudo-static modification method. For more information, see.

1. enable pseudo-static in the dede background
2. modify/include/taglib/tag. lib. php
Find $ row ['link'] = $ cfg_cmsurl. "/tags. php? /". Urlencode ($ row ['keyword'])."/";
Change to $ row ['link'] = $ cfg_cmsurl. "/tags/". urlencode ($ row ['keyword']). ". html ";
3. open templets/default/taglist.htm
Find
Current location:: Homepage> TAG >{dede: field. title /}
Change
Current location:: Homepage> TAG >{dede: field. title /}
IV. add httpd. ini files
RewriteRule ^ (. *)/tags \. html $1/tags \. php
RewriteRule ^ (. *)/tags/(. * ).html $1/tags \. php \? $2
Okay ~
You can use the following method to create a new version:
1. enable pseudo-static in the dede background
2. modify/include/taglib/tag. lib. php and find:
$ Row ['link'] = $ pai_cmsurl. "/tags. php? /". Urlencode ($ row ['keyword'])."/"; changed
$ Row ['link'] = $ pai_cmsurl. "/tags /". urlencode ($ row ['keyword']). ". html "; 3. open templets/default/taglist.htm and find:
Current location:: Home Page> TAG> {dede: field. title/}
Current location:: Home Page> TAG> {dede: field. title/} 4. add the httpd. ini file
RewriteRule ^ (. *)/tags \. html $1/tags. php; RewriteRule ^ (. *)/tags/(. * example .html $1/tags. php? /$2;
Then, go to the dede background and update the cache.

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.