2011-08-23, 07:42 PM
There's an issue with ./archive/global.php where it doesn't quite work as expected on nginx based servers (or at least, it wouldn't on mine). I believe the below block of code should run for nginx, yet it seems not to - therefore meaning the archive URLs look like index.php/forum-x.html which won't work on nginx without a rewrite rule (and there's no mention of such ).
I managed to remedy the issue by defining ARCHIVE_QUERY_STRINGS, but surely it shouldn't have arisen? It could just be my server setup, but I wasn't sure so I thought I'd mention it anyway.
if((DIRECTORY_SEPARATOR == '\\' && stripos($_SERVER['SERVER_SOFTWARE'], 'apache') == false) || stripos(SAPI_NAME, 'cgi') !== false || defined("ARCHIVE_QUERY_STRINGS"))
{
$url = $_SERVER['QUERY_STRING'];
$base_url = $mybb->settings['bburl']."/archive/index.php?";
$endpart = $url;
}
I managed to remedy the issue by defining ARCHIVE_QUERY_STRINGS, but surely it shouldn't have arisen? It could just be my server setup, but I wasn't sure so I thought I'd mention it anyway.