Page 1 of 1

Placing portal on example.com with forum on subdomain

Posted: 8. January 2015 09:56
by SugarD-x
Your Portal Version: 2.1.0-RC1
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Basic Knowledge
Boardlink: Locally hosted

PHP Version: 5.5.9-1ubuntu4.5
MySQL Version: 5.5.40

What have you done before the problem was there?
Not applicable.

What have you already tryed to solve the problem?
Not applicable.

Description and Message
In a previous version of Board3 Portal for PHPBB 3.0.x, I was able to successfully modify portal.php to have my portal display as the main index page at "www.example.com", whereas my forum was located at "forum.example.com". Due to the release of PHPBB 3.1.2, I went ahead and upgraded my forum with fresh files, (including completely removing the old version of Board3 Portal). I'm attempting to get my setup the same again, however with the code structure now different in the new version of Board3 Portal, I'm not able to do this properly.

Essentially the idea is to have my portal appear as the main page at "www.example.com", while the forum is located at "forum.example.com". I'm assuming this would be done through app.php, however I cannot get it to point several of the paths to the correct directories if I set the PHPBB path from "./" to "./forum/". Any ideas on how I can accomplish this? Any assistance would be very much appreciated.


Note: The "example.com" domain was used here as an example due to my forum being developed on a local machine that cannot be accessed via URL at this time. Any issues with domain names I can correct later in my code.

Re: Placing portal on example.com with forum on subdomain

Posted: 8. January 2015 10:20
by Kirk
Hi
If you want the portal as the main index page must do the following:

Open: root/.htaccess
Insert at the end

Code: Select all

DirectoryIndex app.php/portal index.php index.html index.htm

Re: Placing portal on example.com with forum on subdomain

Posted: 8. January 2015 10:27
by SugarD-x
When you mention the .htaccess file, are you referring to the one in PHPBB's root directory, or the main domain page located at "www.example.com"?

Re: Placing portal on example.com with forum on subdomain

Posted: 9. January 2015 09:41
by Kirk
The .htaccess file PHPBB root

Re: Placing portal on example.com with forum on subdomain

Posted: 27. February 2015 22:57
by SugarD-x
Sorry for the delayed reply.

Unfortunately this didn't have any effect on my forum or the main website root.

Re: Placing portal on example.com with forum on subdomain

Posted: 28. February 2015 10:26
by Kirk
Have you clear the cache? "ACP -> General" --> purge cache

Re: Placing portal on example.com with forum on subdomain

Posted: 7. March 2015 00:55
by MyLady
should that work from root domain to his subdomain (http://www.example.com to http://forum.example.com = subdomain) per .htaccess without forwarding?
I can not see how to install portal on another domain than your forum.

Re: Placing portal on example.com with forum on subdomain

Posted: 12. March 2015 23:19
by SugarD-x
Kirk wrote:Have you clear the cache? "ACP -> General" --> purge cache
Yes. It hasn't made any changes at all.
MyLady wrote:should that work from root domain to his subdomain (http://www.example.com to http://forum.example.com = subdomain) per .htaccess without forwarding?
I can not see how to install portal on another domain than your forum.
That is the problem I'm having. The portal, (and forum itself), treat subdomains as if they are a different domain, so it makes things a bit tricky.