Jump to content

Two Domains - One forum

Featured Replies

Posted

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.

Well you if the forum is in your root folder,
Then you can add 2 domains in the cpanel

  • 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.

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 ?

$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

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
  • 7 months later...

Do cookies still work or do you have to use mod_rewrite?

Although this can be helpful to some people in some circumstances, I'm not sure that it should be made into a standard feature. ;)

Archived

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

Recently Browsing 0

  • No registered users viewing this page.