Recent Topics

1 Jul 08, 2008 23:14    

My b2evolution Version: Not Entered

Hi there,

I installed b2evo on my webserver (xampp). The blog layout didn't load when I was trying to access the blog from the internet. I realized that all paths refer to "http://localhost/". I changed the base url to my ip address instead of localhost. Now it works fine when you access form the internet. But now I can no more access the blog form my local machine where the web server is installed. Is there a possibility to have something like two different base urls? Or are there other solutions to this problem?

cheers mi.

2 Jul 08, 2008 23:50

Hi melee, welcome to the forums!
Try this

if( isset($_SERVER['HTTP_HOST']) && strstr( $_SERVER['HTTP_HOST'], 'localhost' ) )
{
	$baseurl = 'http://localhost/';
}
else
{
	$baseurl = '';
}

3 Jul 17, 2008 23:23

hey sam2kb,
copy - paste and it works - thanks a lot!!!

cheers.


Form is loading...