[EN] Moving portal.php outside of your forums directory
Posted: 6. October 2008 21:26
FAQ Table Of Contents / Inhaltsverzeichnis
How to move portal.php outside of the forums directory.
e.g from http://www.mysite.com/forums/portal.php to http://www.mysite.com/portal.php.
This guide assumes your forums are located at /forums/ if yours is different please replace all instances of it in the code below.
Move /forums/portal.php to /portal.php.
Create or edit /.htaccess and add:
Edit /forums/.htaccess
REMOVE
Open /portal.php
Find
Replace with
Open /forums/includes/functions.php
Find
Replace with
That should be it.
FAQ Table Of Contents / Inhaltsverzeichnis
How to move portal.php outside of the forums directory.
e.g from http://www.mysite.com/forums/portal.php to http://www.mysite.com/portal.php.
This guide assumes your forums are located at /forums/ if yours is different please replace all instances of it in the code below.
Move /forums/portal.php to /portal.php.
Create or edit /.htaccess and add:
Code: Select all
DirectoryIndex portal.php index.php index.html index.htm
REMOVE
Code: Select all
DirectoryIndex portal.php index.php index.html index.htm
Find
Code: Select all
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
Code: Select all
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forums/';
Find
Code: Select all
'U_PORTAL' => append_sid("{$phpbb_root_path}portal.$phpEx"),
Code: Select all
'U_PORTAL' => append_sid("../portal.$phpEx"),
FAQ Table Of Contents / Inhaltsverzeichnis