.htaccess
and app.php
files to the site's root directory and edit the $phpbb_root_path
variable to your board's path and it would cause the pages extension to not require the board path in the URL.Thank you, but I installed phpBB to the root path, so that is not an option for me.Kailey wrote: Fri Sep 06, 2024 6:16 pm I haven't tested this with the latest version of phpBB, but a while ago I remember that you could copy (not move) the.htaccess
andapp.php
files to the site's root directory and edit the$phpbb_root_path
variable to your board's path and it would cause the pages extension to not require the board path in the URL.
DirectoryIndex site-index
DirectoryIndex site-index.php
is going to work without question if the file site-index.php exists.It does expect a file to exist, unfortunately. Unless there is an obscure command for .htaccess that exists that no one has thought of, I am likely going to have to drop a custom .php file and style template for it as opposed to using the extension. I am NOT going to use a simple redirect page as that would look suspicious and anti-malware products might think the site is hacked.thecoalman wrote: Sat Sep 07, 2024 7:16 am The reason I'm not sure it's going to work is because I don't know if it expects a file to exist.
Code: Select all
RewriteRule "^$" "/url/to/file" [R]
Code: Select all
#Alternate default index pages
DirectoryIndex home.php index.php index.htm index.html
Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
redirect(append_sid("{$phpbb_root_path}home"));
?>