Page 1 of 1
Custom Page to Startpage
Posted: Fri Nov 28, 2014 5:32 pm
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. *?
Re: Custom Page to Startpage
Posted: Fri Nov 28, 2014 5:44 pm
by KaileyT
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;
Re: Custom Page to Startpage
Posted: Fri Nov 28, 2014 5:55 pm
by wintstar
A little complicated, but it works. Thx

Re: Custom Page to Startpage
Posted: Fri Nov 28, 2014 5:57 pm
by KaileyT
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.

Re: Custom Page to Startpage
Posted: Fri Sep 11, 2015 2:27 pm
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.