<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>张振峰 &#187; pagerank</title>
	<atom:link href="http://www.zhangzhenfeng.com/tags/pagerank/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zhangzhenfeng.com</link>
	<description>阵风：天生我材必有用</description>
	<lastBuildDate>Mon, 06 Sep 2010 06:42:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>去掉顶部频道显示处的网站首页及频道地址的扩展名</title>
		<link>http://www.zhangzhenfeng.com/showchannel-getchannellist/</link>
		<comments>http://www.zhangzhenfeng.com/showchannel-getchannellist/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 14:24:51 +0000</pubDate>
		<dc:creator>阵风</dc:creator>
				<category><![CDATA[动易]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[getchannellist]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[pagerank]]></category>
		<category><![CDATA[showchannel]]></category>
		<category><![CDATA[目录]]></category>

		<guid isPermaLink="false">http://www.zhangzhenfeng.com/?p=32</guid>
		<description><![CDATA[大部分情况下，http://www.zhangzhenfeng.com/ 与 http://www.zhangzhenfeng.com/index.asp 的 Google PageRank 是不同的。据说，在google 看来，目录的权重比文件大。默认情况下，动易的标签 {$ShowChannel} 输出时，网站首页、频道首页的地址都是{$InstallDir}index.htm、{$InstallDir}Article/index.asp 的形式，如何才能修改为 {$InstallDir}、{$InstallDir}Article/ 的形式呢？]]></description>
			<content:encoded><![CDATA[<p>大部分情况下，http://www.zhangzhenfeng.com/ 与 http://www.zhangzhenfeng.com/index.asp 的 Google PageRank 是不同的。据说，在google 看来，目录的权重比文件大。默认情况下，动易的标签 {$ShowChannel} 输出时，网站首页、频道首页的地址都是{$InstallDir}index.htm、{$InstallDir}Article/index.asp 的形式，如何才能修改为 {$InstallDir}、{$InstallDir}Article/ 的形式呢？<span id="more-32"></span></p>
<p>只需修改 Include/PowerEasy.Common.Front.asp 中的Function GetChannelList(NumNewLine)，进而改变标签 {$ShowChannel} 的输出即可。下面以动易开源版SiteWeaver™ CMS 6.5为例进行说明。</p>
<p><strong>第一步，将网站首页地址由 {$InstallDir}index.htm 的形式修改为 {$InstallDir} 的形式。</strong>在 Include/PowerEasy.Common.Front.asp 中找到如下代码：</p>
<blockquote><p>If ChannelID = 0 Then<br />
strChannel = ChannelLink &amp; &#8220;&lt;a class=&#8221;Channel2&#8221; href=&#8221;&#8221; &amp; strInstallDir &amp; FileName_SiteIndex &amp; &#8220;&#8221;&gt;&#8221; &amp; XmlText(&#8220;BaseText&#8221;, &#8220;FirstPage&#8221;, &#8220;网站首页&#8221;) &amp; &#8220;&lt;/a&gt;&#8221; &amp; ChannelLink<br />
Else<br />
strChannel = ChannelLink &amp; &#8220;&lt;a class=&#8221;Channel&#8221; href=&#8221;&#8221; &amp; strInstallDir &amp; FileName_SiteIndex &amp; &#8220;&#8221;&gt;&#8221; &amp; XmlText(&#8220;BaseText&#8221;, &#8220;FirstPage&#8221;, &#8220;网站首页&#8221;) &amp; &#8220;&lt;/a&gt;&#8221; &amp; ChannelLink<br />
End If</p></blockquote>
<p>将其修改为</p>
<blockquote><p>If ChannelID = 0 Then<br />
strChannel = ChannelLink &amp; &#8220;&lt;a class=&#8221;Channel2&#8221; href=&#8221;&#8221; &amp; strInstallDir  &amp; &#8220;&#8221;&gt;&#8221; &amp; XmlText(&#8220;BaseText&#8221;, &#8220;FirstPage&#8221;, &#8220;网站首页&#8221;) &amp; &#8220;&lt;/a&gt;&#8221; &amp; ChannelLink<br />
Else<br />
strChannel = ChannelLink &amp; &#8220;&lt;a class=&#8221;Channel&#8221; href=&#8221;&#8221; &amp; strInstallDir &amp; &#8220;&#8221;&gt;&#8221; &amp; XmlText(&#8220;BaseText&#8221;, &#8220;FirstPage&#8221;, &#8220;网站首页&#8221;) &amp; &#8220;&lt;/a&gt;&#8221; &amp; ChannelLink<br />
End If</p></blockquote>
<p><strong>第二步，将频道首页地址由 {$InstallDir}Article/index.htm 的形式修改为 {$InstallDir}Article/ 的形式。</strong>在 Include/PowerEasy.Common.Front.asp 中找到如下代码：</p>
<blockquote><p>If rsChannel(&#8220;UseCreateHTML&#8221;) &gt; 0 Then<br />
strChannel = strChannel &amp; &#8221; href=&#8221;&#8221; &amp; ChannelUrl &amp; &#8220;/Index&#8221; &amp; arrFileExt(rsChannel(&#8220;FileExt_Index&#8221;)) &amp; &#8220;&#8221;&#8221;<br />
Else<br />
strChannel = strChannel &amp; &#8221; href=&#8221;&#8221; &amp; ChannelUrl &amp; &#8220;/Index.asp&#8221;&#8221;<br />
End If</p></blockquote>
<p>将其修改为</p>
<blockquote><p>strChannel = strChannel &amp; &#8221; href=&#8221;&#8221; &amp; ChannelUrl &amp; &#8220;/&#8221;&#8221;</p></blockquote>
<p>修改完成后，保存文件，更新缓存，如果网站首页或某频道首页需要生成html，进行生成后刷新页面即可。另外，<strong>注意一下默认文档顺序</strong>（例如：网站首页生成html后缀为“.htm”，但默认文档中index.asp i优先于 index.htm，则访问网站目录 {$InstallDir} 时，系统会调用index.asp而非index.htm，然后跳转到index.htm，这种情况下地址栏显示的地址不是目录形式，多了个index.htm）</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zhangzhenfeng.com/showchannel-getchannellist/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
