summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2008-12-06 12:41:00 -0500
committerStarla Insigna <hatkirby@fourisland.com>2008-12-06 12:41:00 -0500
commit8fd2009756657ab115ed389bd7b458bf570ff606 (patch)
treee7417a324b7370dbe7db2b9dfe27ca520123616e
parentd5e453a7b0a2f966106de4f19602e433f9c7713d (diff)
downloadfourisland-8fd2009756657ab115ed389bd7b458bf570ff606.tar.gz
fourisland-8fd2009756657ab115ed389bd7b458bf570ff606.tar.bz2
fourisland-8fd2009756657ab115ed389bd7b458bf570ff606.zip
Redirected blog post urls
It turns out that FeedBurner somehow gets a hold of the original URLs for blog posts instead of the rewritten ones, so users clicking on them go there. I've fixed the
problem by checking for "index.php" in the URL in blog.php, and redirecting if it finds it. This was the problem with the Pingback thing.
-rwxr-xr-xpages/blog.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/pages/blog.php b/pages/blog.php index 93d5dc6..bb47755 100755 --- a/pages/blog.php +++ b/pages/blog.php
@@ -22,6 +22,11 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);}
22 22
23require('headerproc.php'); 23require('headerproc.php');
24 24
25if ((strpos($_SERVER['REQUEST_URI'],'index.php')) && (isset($_GET['post'])))
26{
27 header('Location: /blog/' . $_GET['post'] . '/');
28}
29
25$pageCategory = 'home'; 30$pageCategory = 'home';
26$pageAID = 'archive'; 31$pageAID = 'archive';
27 32