Pseudo-static methods/steps for TAG of weaving dream dedecms
1. Dede background basic parameter core settings enable pseudo-static
2. Modify /include/taglib/tag.lib.php and find:
$row['link'] = $cfg_cmsurl."/tags.php?/".urlencode($row['keyword'])."/";
changed to
$row['link'] = $cfg_cmsurl."/tags/".urlencode($row['keyword']).".html";
tags.phpmodification
$tag = trim($_SERVER['QUERY_STRING']);换成
$tag = strtolower(trim($_SERVER['QUERY_STRING']));
At this point, the program modification of dream weaving dedecms is completed, and then we only need to add relative pseudo-static rules on the corresponding host!
Pseudo-static rules in nginx environment:
rewrite ^(.*)/tags\.html $1/tags.php;
rewrite ^(.*)/tags/(.*).html $1/tags.php?/$2;
rewrite ^(.*)/tags/(.*)\/([0-9])(?:(\?.*))\.html* $1/tags.php?\/$1\/$2;