Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv15208
Modified Files:
index.php serendipity_sidebar_items.php
Log Message:
Link to the archives is now /archive (we want google&co to index the whole blog-archive).
Index: index.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/index.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- index.php 30 Apr 2003 15:48:55 -0000 1.6
+++ index.php 2 May 2003 21:21:33 -0000 1.7
@@ -4,7 +4,7 @@
header("HTTP/1.0 200\r\n");
session_start();
include_once("serendipity_config.inc.php");
-
+$serendipity['pregenerate'] = true;
$track_referer = true;
$uri = $_SERVER['REQUEST_URI'];
@@ -94,6 +94,10 @@
} else if (preg_match('@/entries$@', $uri)) {
header("Location: {$serendipity['serendipityHTTPPath']}serendipity_entries.php");
exit;
+}
+else if (preg_match('@/archive$@', $uri)) {
+ $serendipity['GET']['action']="archives";
+ include_once("serendipity_genpage.inc.php");
} else if (preg_match('@/(index\.(php|html))?@', $uri)) {
if (count($serendipity['GET']) == 2) {
ob_start();
Index: serendipity_sidebar_items.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_sidebar_items.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- serendipity_sidebar_items.php 5 Apr 2003 23:46:56 -0000 1.4
+++ serendipity_sidebar_items.php 2 May 2003 21:21:33 -0000 1.5
@@ -70,7 +70,7 @@
$ts = mktime(0,0,0,date("m", $ts), 1, date("Y", $ts));
}
- echo "<a href='?serendipity[action]=archives'>Older...</a>";
+ echo "<a href='{$serendipity['serendipityHTTPPath']}archive'>Older...</a>";
}
}
|