From 8fd2009756657ab115ed389bd7b458bf570ff606 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sat, 6 Dec 2008 12:41:00 -0500 Subject: 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. --- pages/blog.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pages') 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);} require('headerproc.php'); +if ((strpos($_SERVER['REQUEST_URI'],'index.php')) && (isset($_GET['post']))) +{ + header('Location: /blog/' . $_GET['post'] . '/'); +} + $pageCategory = 'home'; $pageAID = 'archive'; -- cgit 1.4.1