miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
How To miniBB Support Forums / How To /   

Why do you use both 'main url' and 'start index' in combination?

Author PurpleCow
#1 | Posted: 31 Dec 2010 11:18 
To specify the main page url of the forum, code uses 'main url' and start index' combination - {$main_url}/{$startIndex} : why is that required?

Can I only use {$main_url} and ignore the {$startIndex} to specify the main page url?

Also when I navigate to the main page only by {$main_url} - even a logged out user is shown as logged in - How can I overcome that? Is it some sort of cookie issue?

Thanks much for any help

Author Paul
Lead Developer
#2 | Posted: 3 Jan 2011 06:08 
{$main_url} and {$startIndex} are very different settings. {$main_url} points to your forums folder (without slash), and {$startIndex} stands for the name of the index file. {$startIndex} should not contain URL path - it's just a file name (or blank string).

There may be different start names for your board: index.html, index.php, start.html and so on. {$startIndex} is for such issues when the board has something specific or hosting-related. In most cases, when you have index.php as the board's primary file, and if your server is configured to support the index file without specifying its original name (like it could be done in Apache), you may just leave this variable blank. Then all navigation links across forums will point to a "blank" index ending with the slash. It's like on our forums here.

I can't tell anything regarding logged status - but it's definitely a cookie issue, most probably it appears because of that - domains without 'www' and with 'www' are different things, for miniBB you should have only one, with or without 'www'.

How To miniBB Support Forums / How To / Why do you use both 'main url' and 'start index' in combination? Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
  Extend your miniBB-forums, attaching the images and files,
get the File and Picture Attachments add-on!
Galleries / Attachments Addon for miniBB