Jump to content

Two Domains - One forum


Guest armyofone

Recommended Posts

Can the forum be configured so that I can have two different domains point to it and work?

Both domains are on the same server and I can point to forums.domain1.com and it works fine with that domain in the forum's conf file. Now if I have forums.domain2.com pointed to the same forum it will load the main page no problem but then it will revert to the domain1.com when you load further pages.

Thanks for any suggestions.

Link to comment
Share on other sites

  • 2 weeks later...

Real simple way to do this:

Conf_Global.php :

<?php

$INFO['sql_driver']   = 'mysql';

$INFO['sql_host']   = 'mysql.domain.net';

$INFO['sql_database']   = 'db';

$INFO['sql_user']   = 'UN';

$INFO['sql_pass']   = '**********';

$INFO['sql_tbl_prefix']   = 'ibf_';

$INFO['sql_debug']   = '1';

$INFO['board_start']   = '1119373451';

$INFO['installed']   = '1';

$INFO['php_ext']   = 'php';

$INFO['safe_mode']   = '0';

$INFO['board_url']   = 'http://'.$_SERVER['HTTP_HOST'];

$INFO['admin_group']   = '4';

$INFO['guest_group']   = '2';

$INFO['member_group']   = '3';

$INFO['auth_group']   = '1';


?>



This will use whatever domain name, even an ip, as what to put in the url.

Link to comment
Share on other sites

Okey my forum is not in root directory !!

This is my present config

$INFO['board_url']			=	'/forum';

I tried but did not work

$INFO['board_url']   = 'http://'.$_SERVER['HTTP_HOST']/forum;



But with this the problem is when I post any URL ref to my own domain ipb adds http:// to it!!

I simple lang say I post a url in this fasion /forum/admin.php this url works when you click on it using any domain. But in recent 2.1.3 ver this is not possible. It adds http:// if I mannually don't add it. Also it has become difficult to post non http:// or ftp:// links like eMule:// or steam:// etc etc. Does the new version has option for enabling & disabling it ?

Link to comment
Share on other sites

$INFO['board_url']   = 'http://'.$_SERVER['HTTP_HOST']/forum;

This will never work like intended by you... try the following line:

$INFO['board_url'] = 'http://' . $_SERVER['HTTP_HOST'] . '/forum';



Whereas I'm not completely sure if the slash in front of forum is needed or not... you may try both

Link to comment
Share on other sites

This will never work like intended by you... try the following line:


$INFO['board_url'] = 'http://' . $_SERVER['HTTP_HOST'] . '/forum';



Whereas I'm not completely sure if the slash in front of forum is needed or not... you may try both



Well it worked pefectly well :cool: . U need to add the slash before forum :rolleyes: Thanx
Link to comment
Share on other sites

  • 7 months later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...