[EN] Moving portal.php outside of your forums directory

Locked
User avatar

Topic author
Ice
Former Team Member
Posts: 359
Joined: 20. January 2008 23:43
Location: England, United Kingdom

[EN] Moving portal.php outside of your forums directory

Post by Ice »

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
Edit /forums/.htaccess
REMOVE

Code: Select all

DirectoryIndex portal.php index.php index.html index.htm
Open /portal.php
Find

Code: Select all

$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; 
Replace with

Code: Select all

$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forums/'; 
Open /forums/includes/functions.php
Find

Code: Select all

        'U_PORTAL'            => append_sid("{$phpbb_root_path}portal.$phpEx"), 
Replace with

Code: Select all

        'U_PORTAL'            => append_sid("../portal.$phpEx"), 
That should be it.

FAQ Table Of Contents / Inhaltsverzeichnis
Board3 Portal Dev & English Tech Support
Locked

Return to “KB-Archiv”