If anyone has problems with permalinks causing 404 errors here is the solution:
This is what goes in the .htaccess file:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .+ - [L]
RewriteRule .* rewrite_name.php [L]
Then create a new php file and call it rewrite_name.php
and paste this in:
<?php
/***************************************************************************
* Dolphin Web Community Software
* -------------------
* begin : Mon Mar 23 2006
* copyright : (C) 2006 BoonEx Group
* website : http://www.boonex.com
*
*
*
****************************************************************************/
/***************************************************************************
*
* This is a free software; you can modify it under the terms of BoonEx
* Product License Agreement published on BoonEx site at http://www.boonex.com/downloads/license.pdf
* You may not however distribute it for free or/and a fee.
* This notice may not be removed from the source code. You may not also remove any other visible
* reference and links to BoonEx Group as provided in source code.
*
***************************************************************************/
@list($url, $vars) = explode('?', $_SERVER['REQUEST_URI']);
if( $url == '/' )
{
require_once('index.php');
exit;
}
$urlArr = explode('/', $_SERVER['REQUEST_URI']);
$rewriteNick = (strlen(trim($urlArr[count($urlArr) - 1])) ? $urlArr[count($urlArr) - 1] : $urlArr[count($urlArr) - 2]);
if ( !get_magic_quotes_gpc() )
{
$rewriteNick = addslashes($rewriteNick);
}
require_once( "inc/header.inc.php" );
require_once( "{$dir['inc']}db.inc.php" );
$profArr = db_arr( "SELECT `ID` FROM `Profiles` WHERE `NickName` LIKE '{$rewriteNick}' AND `Status` = 'Active'" );
if ($profArr)
{
$_REQUEST['ID'] = $profArr['ID'];
require_once( "{$dir['root']}profile.php" );
exit();
}
else
{
header("Location: {$site['url']}index.php");
}
?>
After which place both files into the root.
Also make sure mod_rewrite is enabled in apache.
Cheers!