|
|
官方后台还有一点没改,就是提示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}');
红色部位为修改后,蓝色为修改前;
到后台全部更新缓存,然后更新地址,全部生成静态;
完毕;
这里我又一点问题,我是把
[color=]{$alloc}这个变量修改成了
[color=]html,我想知道{$alloc}在哪里修改,望高手指导。
[color=]
[color=]大家根据自己的需要修改吧,希望能举一反三。
|
|