Placing portal on example.com with forum on subdomain

Current Version: 2.1.0
Released: 2015-10-26
Forum rules
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
SugarD-x
Active Member
Posts: 7
Joined: 8. January 2015 09:42
phpBB.com User: SugarD-x

Placing portal on example.com with forum on subdomain

Post 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.
User avatar

Kirk
Dev
Posts: 1956
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

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

Post 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
Gruß Udo

Topic author
SugarD-x
Active Member
Posts: 7
Joined: 8. January 2015 09:42
phpBB.com User: SugarD-x

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

Post 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"?
User avatar

Kirk
Dev
Posts: 1956
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

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

Post by Kirk »

The .htaccess file PHPBB root
Gruß Udo

Topic author
SugarD-x
Active Member
Posts: 7
Joined: 8. January 2015 09:42
phpBB.com User: SugarD-x

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

Post by SugarD-x »

Sorry for the delayed reply.

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

Kirk
Dev
Posts: 1956
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

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

Post by Kirk »

Have you clear the cache? "ACP -> General" --> purge cache
Gruß Udo
User avatar

MyLady
Sponsor
Posts: 134
Joined: 30. November 2009 16:11
phpBB.de User: Scanialady
phpBB.com User: Scanialady
Contact:

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

Post 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.
sorry for my bad english - I'm german and google is my friend :D

Topic author
SugarD-x
Active Member
Posts: 7
Joined: 8. January 2015 09:42
phpBB.com User: SugarD-x

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

Post 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.
Locked

Return to “Board3 Portal 2.1.x - English Support”