2007/07/26 21:10
7月13日被空间商以未备案的理由关闭了,其实那时就已经提交近一个月了,一直没处理好:(今天刚好发现备案批下来了。
不过,考虑到好像有说博客也是不允许建的,类似bbs要专项审批……
所以昨天,索性在IxWebHosting买了个Business Plus Plan空间,现在用的这个IP(76.163.180.30)据说是全新的IP哦,而且只有我这一个站使用它
,这家空间的最大优势就是免费提供独立IP了。今天化了不少时间转移,总算在晚上差不多都恢复了。
由于新空间支持.htaccess,就使用了系统自带的其于Apache的URL优化(Rewrite),使URL更好看了些:)
不过,考虑到好像有说博客也是不允许建的,类似bbs要专项审批……
所以昨天,索性在IxWebHosting买了个Business Plus Plan空间,现在用的这个IP(76.163.180.30)据说是全新的IP哦,而且只有我这一个站使用它
,这家空间的最大优势就是免费提供独立IP了。今天化了不少时间转移,总算在晚上差不多都恢复了。由于新空间支持.htaccess,就使用了系统自带的其于Apache的URL优化(Rewrite),使URL更好看了些:)
2007/07/26 19:26
当启用了基于Apache的URL优化(Rewrite)时,在archive.php这页中的月份的链接仍然是动态的。
另外,无论从用户还是搜索引擎优化的角度来看,没有文章的那个月没有必要加链接。
自己动手改了一下:
在inc/mod_view.php中,搜索archivelist,在下面的
更改为
效果如:http://www.9enjoy.com/archive.php
另外,无论从用户还是搜索引擎优化的角度来看,没有文章的那个月没有必要加链接。
自己动手改了一下:
在inc/mod_view.php中,搜索archivelist,在下面的
for ($i=0; $i<count($uniquedates); $i++) {
$y=$uniquedates[$i];
$result.="<tr><td colspan=\"4\"><strong>{$y}{$lnc[299]}</strong></td></tr>\n<tr>";
for ($j=1; $j<13; $j++) {
$resultdates[$y][$j]=floor($resultdates[$y][$j]);
$result.="<td><a href=\"index.php?go=archive&cm={$j}&cy={$y}\"><strong>{$j}{$lnc[298]}</strong></a> ({$resultdates[$y][$j]})</td>";
if ($j%4==0) $result.="</tr><tr>";
}
$result.="</tr>\n";
}
$y=$uniquedates[$i];
$result.="<tr><td colspan=\"4\"><strong>{$y}{$lnc[299]}</strong></td></tr>\n<tr>";
for ($j=1; $j<13; $j++) {
$resultdates[$y][$j]=floor($resultdates[$y][$j]);
$result.="<td><a href=\"index.php?go=archive&cm={$j}&cy={$y}\"><strong>{$j}{$lnc[298]}</strong></a> ({$resultdates[$y][$j]})</td>";
if ($j%4==0) $result.="</tr><tr>";
}
$result.="</tr>\n";
}
更改为
for ($i=0; $i<count($uniquedates); $i++) {
$y=$uniquedates[$i];
$result.="<tr><td colspan=\"4\"><strong>{$y}{$lnc[299]}</strong></td></tr>\n<tr>";
for ($j=1; $j<13; $j++) {
$resultdates[$y][$j]=floor($resultdates[$y][$j]);
//$result.="<td><a href=\"index.php?go=archive&cm={$j}&cy={$y}\"><strong>{$j}{$lnc[298]}</strong></a> ({$resultdates[$y][$j]})</td>";
$outurl=($config['smarturl']==1 && $config['urlrewrite']==1) ? "/archive_{$j}_{$y}.htm" : "/index.php?go=archive&cm={$j}&cy={$y}";
if($resultdates[$y][$j]>0){
$result.="<td><a href=\"{$outurl}\"><strong>{$j}{$lnc[298]}</strong></a> ({$resultdates[$y][$j]})</td>";
}else{
$result.="<td>{$j}{$lnc[298]} (0)</td>";
}
if ($j%4==0) $result.="</tr><tr>";
}
$result.="</tr>\n";
}
$y=$uniquedates[$i];
$result.="<tr><td colspan=\"4\"><strong>{$y}{$lnc[299]}</strong></td></tr>\n<tr>";
for ($j=1; $j<13; $j++) {
$resultdates[$y][$j]=floor($resultdates[$y][$j]);
//$result.="<td><a href=\"index.php?go=archive&cm={$j}&cy={$y}\"><strong>{$j}{$lnc[298]}</strong></a> ({$resultdates[$y][$j]})</td>";
$outurl=($config['smarturl']==1 && $config['urlrewrite']==1) ? "/archive_{$j}_{$y}.htm" : "/index.php?go=archive&cm={$j}&cy={$y}";
if($resultdates[$y][$j]>0){
$result.="<td><a href=\"{$outurl}\"><strong>{$j}{$lnc[298]}</strong></a> ({$resultdates[$y][$j]})</td>";
}else{
$result.="<td>{$j}{$lnc[298]} (0)</td>";
}
if ($j%4==0) $result.="</tr><tr>";
}
$result.="</tr>\n";
}
效果如:http://www.9enjoy.com/archive.php





