Custom Page to Startpage

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
Locked
User avatar
wintstar
Registered User
Posts: 280
Joined: Sat Mar 07, 2009 12:39 pm

Custom Page to Startpage

Post by wintstar » Fri Nov 28, 2014 5:32 pm

With 3.0.12 it was possible to custom page set as homepage define with .htaccess

Code: Select all

     DirectoryIndex custom.php index.php index.html index.htm
With 3.1.* this not work

Code: Select all

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

Code: Select all

custom_main_controller:
 path: /custom
 defaults: { _controller: wintstar.custom.controller:display }
How does it work in 3.1. *?

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 2259
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Custom Page to Startpage

Post by kinerity » Fri Nov 28, 2014 5:44 pm

Leave the DirectoryIndex and routing files as you currently have them in your code above and add a custom.php file with this (add your phpBB directory if applicable):

Code: Select all

<?php
header("Location: http://www.yoursite.tld/custom");
exit;
Kailey Truscott - Community Team

User avatar
wintstar
Registered User
Posts: 280
Joined: Sat Mar 07, 2009 12:39 pm

Re: Custom Page to Startpage

Post by wintstar » Fri Nov 28, 2014 5:55 pm

A little complicated, but it works. Thx :)

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 2259
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Custom Page to Startpage

Post by kinerity » Fri Nov 28, 2014 5:57 pm

Yeah, I had to do that with my site too. I spent days messing with .htaccess rules and ended up just rigging it this way. ;)
Kailey Truscott - Community Team

promod
Registered User
Posts: 53
Joined: Wed Sep 03, 2014 3:56 pm

Re: Custom Page to Startpage

Post by promod » Fri Sep 11, 2015 2:27 pm

My phpbb 3.1.5 forum is installed at www.xyz.com/forum
I wanted to have similar looking (Prosilver SE) custom index page at www.xyz.com

Can any one guide me what are the files and codes i need to create and which directory i have to put it. so that if anyone goes to www.xyz.com they can see my custom index page and link to the forum as well.

Locked

Return to “[3.1.x] Support Forum”