Hello. I found something else here:
http://www.peak.ne.jp/xoops/modules/news/article.php?storyid=54I added some lines to mainfile.php
// modules changer
$GLOBALS['_rewriteRulesFrom'] = array(
'/buzau/',
'/anunturi/',
'/forum/',
'/matrimoniale/',
);
$GLOBALS['_rewriteRulesTo'] = array(
'/modules/',
'/catads/',
'/newbb/',
'/friendfinder/',
);
function modules_changer( $s )
{
return str_replace( XOOPS_URL.'/modules/' , XOOPS_URL.'/buzau/' , $s) ;
return str_replace( XOOPS_URL.'/modules/catads/' , XOOPS_URL.'/buzau/anunturi/' , $s ) ;
return str_replace( XOOPS_URL.'/modules/newbb/' , XOOPS_URL.'/buzau/forum/' , $s ) ;
return str_replace( XOOPS_URL.'/modules/friendfinder/' , XOOPS_URL.'/buzau/matrimoniale/' , $s ) ;
}
ob_start( 'modules_changer' ) ;
// modules changer
and some code to .htaccess
RewriteEngine on
RewriteRule ^buzau/(.*)$ modules/$1 [L]
RewriteRule ^buzau/forum/(.*)$ modules/newbb/$1 [L]
RewriteRule ^buzau/anunturi/(.*)$ modules/catads/$1 [L]
RewriteRule ^buzau/matrimoniale/(.*)$ modules/friendfinder/$1 [L]
So, now i have something like this:
http://www.buzaulive.ro/buzau/* and this is all. (
http://www.buzaulive.ro/buzau/catads,
http://www.buzaulive.ro/buzau/newbb,
http://www.buzaulive.ro/buzau/friendfinder, etc .........)
newbb, catads, friendfinder, none of this modules change it's name. And i don't know why. Can any of you tell me?
If i make something like this
mainfile.php
// modules changer
$GLOBALS['_rewriteRulesFrom'] = array(
'/buzau/anunturi/',
'/buzau/forum/',
'/buzau/matrimoniale/',
);
$GLOBALS['_rewriteRulesTo'] = array(
'/modules/catads/',
'/modules/newbb/',
'/modules/friendfinder/',
);
function modules_changer( $s )
{
return str_replace( XOOPS_URL.'/modules/catads/' , XOOPS_URL.'/buzau/anunturi/' , $s ) ;
return str_replace( XOOPS_URL.'/modules/newbb/' , XOOPS_URL.'/buzau/forum/' , $s ) ;
return str_replace( XOOPS_URL.'/buzau/friendfinder/' , XOOPS_URL.'/buzau/matrimoniale/' , $s ) ;
}
ob_start( 'modules_changer' ) ;
// modules changer
.htaccess
RewriteEngine on
RewriteRule ^buzau/forum/(.*)$ modules/newbb/$1 [L]
RewriteRule ^buzau/anunturi/(.*)$ modules/catads/$1 [L]
RewriteRule ^buzau/matrimoniale/(.*)$ modules/friendfinder/$1 [L]
I get this
http://www.buzaulive.ro/buzau/anunturi/ (exactly what i want)and only this.
Other modules remains unchanged.
http://www.buzaulive.ro/modules/newbb/http://www.buzaulive.ro/modules/friendfider/Do i miss something? Please help.