Home > 网站建设 > ecms tag 的rewrite规则

ecms tag 的rewrite规则

将tag函数改为
function user_keylink($url)
{global $navinfor;
$keyword=$navinfor[keyboard];
$keyarray=explode(",",$keyword);
for($i=0;$i<count($keyarray);$i++)
{
echo "<a href='http://".$url."/tag/".urlencode($keyarray[$i])."\.html' target='_blank'>".$keyarray[$i]."</a>&nbsp;&nbsp;";
}

}

注意urlencode函数,还有.htaccess自己考虑一下,网上规则多了。

Categories: 网站建设 Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).