3
Heh. Okey, so i said to hell with cbb if it wasn't going to like mod_rewrite. Instead, I've gone with the x-ipb mod. What I'm curious about now is how to get the links within the module to point to the mod_rewritten location and work. I've got the basic .htaccess looking like this:
Quote:
RewriteEngine On
RewriteBase /
RewriteRule ^forum/$ /modules/ipboard/ [L]
RewriteRule ^forum$ /modules/ipboard/ [L]
But I'm wondering what I need to change to make it work for the rest of the module.
I was able to find the following in the /modules/ipboard/index.php file:
if ( $ibforums->session_type == 'cookie' )
{
$ibforums->session_id = "";
$ibforums->base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?';
}
else
{
$ibforums->base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?';
}
$ibforums->js_base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?';
and realized that if i changed the $ibforums->js_base_url=$ibforums->vars['board_url'] to the location I needed, it'll somewhat work. However, it now goes to domain.com/forum/index.php?showthread=1.
What I'm wondering is, how would I modify it to have domain.com/forum/thread/1, domain.com/forum/forum/1, domain.com/forum/user/1 to suit index.php?showthread=1, index.php?showforum=1 and index.php?showuser=1 respectively.
Looking at it now, I'm thinking i'll have to change more than just the $ibforums->vars['board_url'] and probably have to figure out how to change the format of $ibforums->vars['php_ext'].
Any advice?