Quantcast
Viewing all articles
Browse latest Browse all 2196

phpBB Custom Coding • Re: Editing .htaccess to set a Pages Extension created page as homepage

Just making the redirect file public for anyone who wishes to try this. I did not want to do a simple one-line redirect file and doing this seems to work great. I set home.php as my homepage with .htaccess (See post above.) It then redirects to examplewebsitehere.com/home

Code:

<?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")) ?>
I don't need any more assistance. Just posting what worked for me.

I was also wrong. I could use Pages after all, just with a workaround.

Statistics: Posted by [Dimetrodon] — Wed Oct 16, 2024 4:30 am



Viewing all articles
Browse latest Browse all 2196

Trending Articles