If ChannelID = 0 Then
strChannel = ChannelLink & "<a class='Channel2' href='" & strInstallDir & FileName_SiteIndex & "'>" & XmlText("BaseText", "FirstPage", "网站首页") & "</a>" & ChannelLink
Else
strChannel = ChannelLink & "<a class='Channel' href='" & strInstallDir & FileName_SiteIndex & "'>" & XmlText("BaseText", "FirstPage", "网站首页") & "</a>" & ChannelLink
End If
将其修改为:
程序代码
If ChannelID = 0 Then
strChannel = ChannelLink & "<a class='Channel2' href='" & strInstallDir & "'>" & XmlText("BaseText", "FirstPage", "网站首页") & "</a>" & ChannelLink
Else
strChannel = ChannelLink & "<a class='Channel' href='" & strInstallDir & "'>" & XmlText("BaseText", "FirstPage", "网站首页") & "</a>" & ChannelLink
End If
strChannel = ChannelLink & "<a class='Channel2' href='" & strInstallDir & "'>" & XmlText("BaseText", "FirstPage", "网站首页") & "</a>" & ChannelLink
Else
strChannel = ChannelLink & "<a class='Channel' href='" & strInstallDir & "'>" & XmlText("BaseText", "FirstPage", "网站首页") & "</a>" & ChannelLink
End If
第二步,将频道首页地址由 {$InstallDir}Article/index.htm 的形式修改为 {$InstallDir}Article/ 的形式。在 Include/PowerEasy.Common.Front.asp 中找到如下代码:
程序代码
If rsChannel("UseCreateHTML") > 0 Then
strChannel = strChannel & " href='" & ChannelUrl & "/Index" & arrFileExt(rsChannel("FileExt_Index")) & "'"
Else
strChannel = strChannel & " href='" & ChannelUrl & "/Index.asp'"
End If
strChannel = strChannel & " href='" & ChannelUrl & "/Index" & arrFileExt(rsChannel("FileExt_Index")) & "'"
Else
strChannel = strChannel & " href='" & ChannelUrl & "/Index.asp'"
End If
将其修改为
程序代码
If rsChannel("UseCreateHTML") > 0 Then
strChannel = strChannel & " href='" & ChannelUrl & "/'"
Else
strChannel = strChannel & " href='" & ChannelUrl & "/'"
End If
strChannel = strChannel & " href='" & ChannelUrl & "/'"
Else
strChannel = strChannel & " href='" & ChannelUrl & "/'"
End If
修改完成后,保存文件,更新缓存,如果网站首页或某频道首页需要生成html,进行生成后刷新页面即可。另外,注意一下默认文档顺序(例如:网站首页生成html后缀为“.htm”,但默认文档中index.asp i优先于 index.htm,则访问网站目录 {$InstallDir} 时,系统会调用index.asp而非index.htm,然后跳转到index.htm,这种情况下地址栏显示的地址不是目录形式,多了个index.htm。也就是说index.html要优先于index.asp)
相关文章
GODADDY空间动易6.8生成静态页百度收录乱码的解决方法2012-10-08
godaddy安装动易 SiteWeaver CMS6.8教程2012-10-08
siteweaver 6.8 相关文章增加图片显示的解决办法2012-09-27
siteweaver 自定义文章列表字体颜色的设置方法2012-02-24
动易siteweaver验证码修改为4位的方法2012-02-16
siteweaver 栏目地址不显示扩展名2012-02-01
频道一级栏目导航的函数标签-动易siteweaver2010-11-07
SiteWeaver 6.8 UTF-8版2010-08-03
动易sitewear频道自定义字段首页不能调用的解决方法2010-01-30
动易单页栏目插件、栏目导航标签,可识别内外部连接和单页栏目2009-07-15