0

分类(拼音)/视频(内容ID)伪静态规则

使用手册
admin
2023-6-20 82

想要达到的伪静态的效果

  • /tv/11111.html
  • /zongyi/11111.html

首先“URL自定义”规则如下,其中dianying;tv就是你的分类拼音名,有多少个分类就添加多少个,我这里只添加了两个(dianying,tv)

vod-read-id-(:num)===video/(:num)
vod-read-id-(:num)-cid-dianying===dianying/(:num)
vod-read-id-(:num)-cid-tv===tv/(:num)

然后批量修改默认模板的链接,将

{:xz_url_vod_read($list_id,$list_dir,$vod_id,$vod_ename,$vod_jumpurl)}

替换为

{:str_replace('video/',$list_dir.'/',xz_url_vod_read($list_id,$list_dir,$vod_id,$vod_ename,$vod_jumpurl))}

{:xz_url_vod_read($xzcms['list_id'],$xzcms['list_dir'],$xzcms['vod_id'],$xzcms['vod_ename'],$xzcms['vod_jumpurl'])}

替换为

{:str_replace('video/',$xzcms['list_dir'].'/',xz_url_vod_read($xzcms['list_id'],$xzcms['list_dir'],$xzcms['vod_id'],$xzcms['vod_ename'],$xzcms['vod_jumpurl']))}
最新回复 (0)

    暂无评论

请先登录后发表评论!

返回
请先登录后发表评论!