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.
Get Involved
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.
User avatar
wintstar
Registered User
Posts: 358
Joined: Sat Mar 07, 2009 12:39 pm
Location: Central Hessen, close to the "heart of nature", Germany

Custom Page to Startpage

Post by wintstar »

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
Kailey
Community Team Leader
Community Team Leader
Posts: 3961
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: Custom Page to Startpage

Post by Kailey »

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 Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
User avatar
wintstar
Registered User
Posts: 358
Joined: Sat Mar 07, 2009 12:39 pm
Location: Central Hessen, close to the "heart of nature", Germany

Re: Custom Page to Startpage

Post by wintstar »

A little complicated, but it works. Thx :)
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3961
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: Custom Page to Startpage

Post by Kailey »

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 Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
promod
Registered User
Posts: 53
Joined: Wed Sep 03, 2014 3:56 pm

Re: Custom Page to Startpage

Post by promod »

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.

Return to “[3.1.x] Support Forum”