Recent Topics

1 Feb 13, 2007 16:05    

My b2evolution Version: 1.9.x

Here's the deal:

http://blogs.balupton.com/ is a "virtual" redirect to http://packages.balupton.com/b2evolution/ due to the following .htaccess

RewriteEngine On
Options +FollowSymlinks -Indexes -MultiViews
RewriteBase /

# BLOG clean url
RewriteCond %{REQUEST_URI} /blog/.+$ [NC]
RewriteRule ^blog/([a-z0-9_\%]+)/?$ index.php?blog=$1 [L]

# DATE clean url
RewriteCond %{REQUEST_URI} /date/.+$ [NC]
RewriteRule ^date/([a-z0-9_\%]+)/?([a-z0-9\%]*)/?([a-z0-9\%]*)/?([a-z0-9\%]*)/?$ index.php?m=$1$2$3&blog=$4 [L]

# POST clean url
RewriteCond %{REQUEST_URI} /post/.+$ [NC]
RewriteRule ^post/([a-z0-9_\%]+)/?$ index.php?title=$1&more=1&c=1&tb=1&pb=1 [L]

# USER clean url
RewriteCond %{REQUEST_URI} /user/.+$ [NC]
RewriteRule ^user/([a-z0-9_\%]+)/?$ index.php?user=$1 [L]

# BLOG cleaner url
RewriteCond %{REQUEST_URI} !-f
RewriteRule ^([a-z0-9_\%]+)/?$ index.php?blog=$1 [L]

# Redirect to real location
RewriteCond %{REQUEST_URI} !^/index\.php.*$ [NC]
RewriteCond %{REQUEST_URI} !^/$
RewriteRule ^(.*)$ http://packages.balupton.com/b2evolution/$1 [L]

And a index.php file

<?php
	// Include b2evolution
	require_once("../packages/b2evolution/index.php");
?>

Since b2evo 1.9 blogs.balupton.com has been coming up as a referrer, it's quite annoying and needs to be fixed.

I have the following conf hacks applied

/**
 * $baseurl is where your blogs reside by default. CHECK THIS CAREFULLY or nothing will work.
 * It should be set to the URL where you can find the blog templates and/or the blog stub files,
 * that means index.php, blog_b.php, etc.
 * Note: Blogs can be in subdirectories of the baseurl. However, no blog should be outside
 * of there, or some tricky things may fail (e-g: pingback)
 *
 * IMPORTANT: If you want to test b2evolution on your local machine, do NOT use that machine's
 * name in the $baseurl!
 * For example, if you machine is called HOMER, do not use http://homer/b2evolution/blogs/ !
 * Use http://localhost/b2evolution/blogs/ instead. And log in on localhost too, not homer!
 * If you don't, login cookies will not hold.
 *
 * @global string $baseurl
 */
if( !strpos($tempurl,'localhost/') )
{
	if( !strpos($tempurl,'blogs.balupton') )
		$baseurl = 'http://packages.balupton.com/b2evolution/';
	else
	{
		$baseurl = 'http://packages.balupton.com/b2evolution/';
		require_once(dirname(__FILE__).'/_advanced.php');
		$baseurl = 'http://blogs.balupton.com/';
	}
} else
{
	$baseurl = 'http://localhost/balupton.com/packages/b2evolution/';
}
unset($tempurl);

2 Feb 14, 2007 10:41

conf/stats.php ;)

$self_referer_list = array(
	'://'.$basehost,			// This line will match all pages from your the host of your $baseurl
	'://www.'.$basehost,	// This line will also match www.you_base_host in case you have no www. on your basehost
	'http://localhost',
	'http://127.0.0.1',
	'balupton.com',
);

¥


Form is loading...