Multiple domain names, one geeklog


Geeklog (the software driving this site) requires you to set the home url in config.php.

I use multiple domain names here:
so I wanted to configure geeklog to allow visitors to use the website through each of these domans.

Geeklogs default behaviour is to prefix the value of $_CONF['site_url'] from config.php to all the links it displays. With a hard coded domain set in $_CONF['site_url'], all your visitors will be refered to that domain, regardless of which one they first visit your site on.

Change $_CONF['site_url'] in your config.php to:

$_CONF['site_url'] = 'http://' . $_SERVER["HTTP_HOST"];
and you will find Geeklog now keeps your vistor on the same domain name as they started.

Of course, if you have geeklog in a subdirectory of your website root directory, you will need to append that to the end, something like:

$_CONF['site_url'] = 'http://' . $_SERVER["HTTP_HOST"] . '/geeklog';

Tokyoahead's forums also has some details on how to run multiple Geeklog sites with one backend directory:
  • Facebook
  • Google Bookmarks
  • Ask
  • LinkedIn
  • Socialogs
  • Wikio
  • Digg
  • Twitter
  • SlashDot
  • Reddit
  • MySpace
  • Blogter
  • BlogMemes
  • Yahoo Buzz
Multiple domain names, one geeklog | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.

Gold Coast Aquarium Maintenance | Gold Coast Marine Fish | Gold Coast Tropical Fish
Jewel Jones - Counselling Service - Penrith, Richmond
 Copyright © 2017 Julian Kuiters
 All trademarks and copyrights on this page are owned by their respective owners.