MyBB Community Forums

Full Version: One Forum, Multiple URLs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Edit:
So, I just realized that this may have been better placed in Plugins & Code Modifications. I had originally figured since it was something to do with the root software, General Support would work but in hindsight, I don't think that was the right way of looking at it. Sorry for the mix-up. Please feel free to move this over there or close it and I can re-post. Thanks!

----------

Hello! I did a quick search but didn't find this issue specifically so I apologize if I missed something.

I have a single install which is accessible, via a symlink, from two different URLs. It was set up this way to provide a unified login system for both of the base sites and, in general, actually works pretty well. I cleared the cookie domain and path which let the logins work just fine.

However, one thing I haven't been able to completely solve is the issue of the board's URL. Of course, setting it to one of the domains will wind up using it on both. Originally, I had used "../forums" which worked, but wasn't exactly pretty and broke things when the forum sent an email.

My next solution, which is working wonderfully, with one exception, was to directly edit the bburl entry in inc/settings.php, using the value "http://" . $_SERVER["HTTP_HOST"] . "/forums". This works perfectly except that any time I edit pretty much anything in the control panel, it reverts back to the plain text version.

So, my question is this: Is there any way to permanently set this to a dynamic value? I realize that this is not a common setup and I don't expect there to be a straightforward Admin CP option for it but some sort of work-around would be great.

My thoughts were maybe to just re-define that particular value somewhere outside of the settings file and have it included after settings is parsed but I'd like to avoid core code modifications if possible. The ability to parse PHP in the templates, possible via plugin I think, would seemingly let me do this but I'd rather not install that plugin for this one issue if possible.

If you'd like to see the setup, here are the two URLs:
http://www.muscletower.com/forums/
http://www.dudegurlz.com/forums/

Thanks in advance for any advice!
Why don't you just park the domains on eith other?
Or redirect them to the other?
Because they are two different sites. They're not supposed to redirect to the same thing - only the forum is shared.