MyBB Community Forums

Full Version: Multiple Domains
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Say my forum is located at (for example): http://www.xxx.org/forum AND http://zzz.ssxh.net/forum, and this poses a problem when users login.

Straight after being logged in, they get redirected from, say the .org to the zzz.ssxh.net site and immediately appear logged out. I set the board url to the .org address but it still isn't working correctly.

Any suggestions?

p.s. Also, how can I change the default forum rules users have to agree to when registering?
set the cookie settings to the .org address aswell
My cookie domain is:
.xxx.org

For some reason when a user clicks the link to http://www.xxx.org/forum it redirects to http://zzz.ssxh.net/forum

I just realised that when I give the complete address (with index.php) I am not redirected.

This is probably not a MyBB issue then, but any further suggestions is anyone else has come across this would be welcome.
Set the Board URL to the same forum URL as the one you used for your cookie settings. Ie. if the board URL is http://www.xxx.org/forum then make your cookie domain: .xxx.org

See if that works.

As for the registration agreement, it is located in inc/languages/english/member.lang.php
I put this in my .htaccess file:-
Quote:RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !www.xxx.org$ [NC]
RewriteRule ^(.*)$ http://www.xxx.org/$1 [L,R=301]

The 3rd line says basically if the URL is not equal to www.xxx.org, then you will be redirected to www.xxx.org/whicheverpageyourequested

This might be of use to somebody with the same login problems.