Change location of 'archive' folder
#1
If you're like me and have a .htaccess conflicting with your 'archive' folder, then this small simple tutorial will tell you how to get around it and change the location of the 'archive' folder. Note: In this example, I am changing the archive folder to 'lite' - however you can change it to whatever you wish - just change 'lite' to whatever you want.

Open: /archive/global.php

Goto Line 47:
	$base_url = $mybb->settings['bburl']."/archive/index.php?";
Change /archive/ to /lite/
	$base_url = $mybb->settings['bburl']."/lite/index.php?";

Goto Line 65:
	$base_url = $mybb->settings['bburl']."/archive/index.php/";
Change /archive/ to /lite/
	$base_url = $mybb->settings['bburl']."/lite/index.php/";

Goto Line 72:
$archiveurl = $mybb->settings['bburl'].'/archive';
Change /archive to /lite
$archiveurl = $mybb->settings['bburl'].'/lite';

Goto Line 160:
$navbits[0]['url'] = $mybb->settings['bburl']."/archive/index.php";
Change /archive/ to /lite/
$navbits[0]['url'] = $mybb->settings['bburl']."/lite/index.php";

Rename: 'archive' folder to 'lite'

Edit Template: *template set* -> footer
Find:
<archive_url>

Replace:
{$mybb->settings['bburl']}/lite/

Done! Big Grin

-- EDIT --
It does work too as you can see from my personal forum. (dalehay.com/convo/lite/)
Reply
#2
thanks, good tutorial!
Creativity is a drug I cannot live without.
[Image: 1]Support PM will be ignored
Reply
#3
Nice! Gj! Big Grin
"A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools." - Doug Adams
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)