Destoon教程之通过修改url.inc.php来修改生成静态名目设定办法
在官方destoon后台还有一点没改,就是提醒url.inc.php在include里面。
实际上官方已经移到api名目了,但是后台提醒还未修改。
遵照提醒,我寻到api名目的url.inc.php文件;
修改
$urls['htm']['item'][0] = array('example'=>'('.$L['url_htm'].') 1/125.html','index'=>'{$alloc}/{$prefix}{$itemid}.{$file_ext}', 'page'=>'{$alloc}/{$prefix}{$itemid}_{$page}.{$file_ext}');
$urls['htm']['item'][0] = array('example'=>'('.$L['url_htm'].') html/125.html','index'=>'html/{$prefix}{$itemid}.{$file_ext}', 'page'=>'html/{$prefix}{$itemid}_{$page}.{$file_ext}');
红色部位为修改后,蓝色为修改前;
到后台全部更新缓存,然后更新地址,全部生成静态;
完毕、
假如想直接把栏目名目生成到根名目,可以修改上面的url函数。