1 zante Feb 11, 2010 17:54
3 zante Feb 11, 2010 18:23
But nothing has changed....
4 yabba Feb 11, 2010 18:26
"Nothing has changed" means?
Copy+paste lines 0 -> 10 of your /blog/index.php here ( put [php] <!-- your copy paste here -->[/php] tags around it when you do, it makes stuff far easier to read ;) )
¥
5 zante Feb 11, 2010 18:30
<html>
<head>
</head>
<?php
/**
* This is the main public interface file.
*
* IF YOU ARE READING THIS IN YOUR WEB BROWSER, IT MEANS THAT PHP IS NOT PROPERLY INSTALLED
* ON YOUR WEB SERVER. IF YOU DON'T KNOW WHAT THIS MEANS, CONTACT YOUR SERVER ADMINISTRATOR
* OR YOUR HOSTING COMPANY.
*
* This file is NOT mandatory. You can delete it if you want.
* You can also replace the contents of this file with contents similar to the contents
* of a_stub.php, a_noskin.php, multiblogs.php, etc.
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/}
*
* {@internal Note: we need at least one file in the main package}}
*
* @package main
*/
/**
* First thing: Do the minimal initializations required for b2evo:
*/
require_once dirname(__FILE__).'/conf/_config.php';
require_once $inc_path.'_main.inc.php';
// Check if a specific blog has been requested in the URL:
param( 'blog', 'integer', '', true );
if( empty($blog) )
{ // No blog requested by URL param, let's try to match something in the URL
$Debuglog->add( 'No blog param received, checking extra path...', 'detectblog' );
$BlogCache = & get_Cache( 'BlogCache' );
if( preg_match( '#^(.+?)index.php/([^/]+)#', $ReqHost.$ReqPath, $matches ) )
{ // We have an URL blog name:
$Debuglog->add( 'Found a potential URL blog name: '.$matches[2], 'detectblog' );
if( (($Blog = & $BlogCache->get_by_urlname( $matches[2], false )) !== false) )
{ // We found a matching blog:
$blog = $Blog->ID;
}
}
if( empty($blog) )
{ // No blog identified by URL name, let's try to match the absolute URL
if( preg_match( '#^(.+?)index.php#', $ReqHost.$ReqPath, $matches ) )
{ // Remove what's not part of the absolute URL
$ReqAbsUrl = $matches[1];
}
else
{
$ReqAbsUrl = $ReqHost.$ReqPath;
}
$Debuglog->add( 'Looking up absolute url : '.$ReqAbsUrl, 'detectblog' );
if( (($Blog = & $BlogCache->get_by_url( $ReqAbsUrl, false )) !== false) )
{ // We found a matching blog:
$blog = $Blog->ID;
$Debuglog->add( 'Found matching blog: '.$blog, 'detectblog' );
}
}
6 yabba Feb 11, 2010 19:26
<html>
<head>
</head>
Delete all that from the file and see what happens ;)
¥
7 zante Feb 12, 2010 16:18
Sorted, not sure what the problem was. I think my host started messing around with something. :[
8 yabba Feb 12, 2010 16:56
No worries ;)
¥
Guesssing you're logged in in IE
I'd be checking what line 5 of /public_html/blog/index.php said ;)
¥ :