I've searched the forums about this problem and although i've found many people discussing it I can't seem to find a solution. Hopefully someone can help as it's driving me crazy, apologies if i've missed an answer or this is a really easy question!
Ok so, my company's blog is up and running, everything is working fine, i'm using the wrapper.php solution to embed my serendipity blog into my 'blog.php' file. I know i probably should be using the Smarty template way of doing things but initially i thought the wrapper way was easier. Anyway, as i said everything is working fine EXCEPT for broken links to 'www.mysite.com/blog.php.' I can get to the site from all my pages, i.e. the links actually works however , google and any link checker returns a 404. I believe the reason is that i have the following code in my blog.php above the header :
Code: Select all
<?php
require("wrapper.php");
?>Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">My paths are as follows :
mysite.com/blog.php
mysite.com/wrapper.php
Index file for blog : mysite.com/serendipity/index.php
Code in wrapper :
Code: Select all
<?php
ob_start();
chdir("serendipity/");
require("index.php");
chdir("../");
$blog = ob_get_contents();
ob_end_clean();
?>Code: Select all
<?php
echo $blog;
?>Thanks.